Installation
PIP
To install the core package of Private Evolution, please use the following command:
pip install "private-evolution @ git+https://github.com/microsoft/DPSDA.git"
If you are using Private Evolution to generate images, use the following command instead to install the package with the necessary dependencies for image generation:
pip install "private-evolution[image] @ git+https://github.com/microsoft/DPSDA.git"
Faiss
Private Evolution requires a nearest neighbor search process. By default, it uses the sklearn package for this purpose. However, for faster computation, we recommend using the faiss package. To install faiss 1.8.0, please use the following command:
conda install -y -c pytorch -c nvidia faiss-gpu=1.8.0
Please check out the faiss website for the latest information on how to install the package.