"If I were a girl" - Magic Mirror by StarGAN
This is complementary source code for my blog post.
Here is the YouTube demo.
Dependencies
- Python3.5
- PyTorch
- numpy
- opencv 1.0.1+
- opencv-python 3.3.0+contrib
Tested on:
- Windows 10 with PyTorch GPU
install requirements
-
Install CUDA 9 from Nvidia Developer website.
-
Install PyTorch with CUDA 9 support
-
Install other Python libraries by pip.
pip3 install -r requirements.txt
Run the demo
Plugin in a USB webcam, then run.
python3 DeepMagicMirror.py
For more instructions, check out my tutorial.
