Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (34 loc) · 722 Bytes

File metadata and controls

40 lines (34 loc) · 722 Bytes

Face Generator API

Face Generator API built with Python using StyleGAN2.

Setup

  1. Move this folder (api) to your home folder.
mv ../api $HOME/api
  1. Install virtualenv to keep all your dependencies in one place.
apt-get install virtualenv
  1. Create a virtual environment and activate it
virtualenv venv --python=python3.6
source venv/bin/activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Check hardware requirements are OK
python cli.py

Run

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