(no title)
walrus | 5 years ago
Install pyenv[0] and pyenv-virtualenv[1]. Clone the repo and set up an environment:
git clone https://github.com/taki0112/UGATIT
cd UGATIT
pyenv install 3.6.10 # [2]
pyenv virtualenv 3.6.10 UGATIT
pyenv local UGATIT
pyenv activate
pip install opencv-python==4.2.0.34 tensorflow==1.14.0
Download the pretrained weights from https://github.com/taki0112/UGATIT/issues/50#issuecomment-53.... Extract them: tar xf ugatit100.tar.xz
mkdir checkpoint
mv UGATIT_selfie2anime* checkpoint
mkdir -p dataset/selfie2anime/{train,test}{A,B}
Crop your images in a 1:1 aspect ratio so that they contain only the head. Place them in the dataset/selfie2anime/testA/ directory. Run the program: python main.py --dataset selfie2anime --phase test
Open results/*/index.html in your browser to see the results.[0] https://github.com/pyenv/pyenv#installation
[1] https://github.com/pyenv/pyenv-virtualenv#installation
[2] Other versions may work, but this is the version mentioned in https://github.com/taki0112/UGATIT#requirements
bentcorner|5 years ago
bentcorner|5 years ago