Face Generator API built with Python using StyleGAN2.
- Move this folder (
api
) to your home folder.
mv ../api $HOME/api
- Install
virtualenv
to keep all your dependencies in one place.
apt-get install virtualenv
- Create a virtual environment and activate it
virtualenv venv --python=python3.6
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Check hardware requirements are OK
python cli.py
cd $HOME/api
./run.sh
Generated images are saved to $HOME/api/results/
When you are done executing the API, deactivate the virtualenv
running
deactivate