Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
imgs
.gitignore
README.md
args.py
facade.py
generator.py
pix2pix.py
unet.py

README.md

Pix2Pix Example by NNabla

NNabla example code of Image-to-Image Translation with Conditional Adversarial Nets a.k.a. pix2pix.

Result Examples (cherry picked)

Output

Running Code

Train Pix2Pix Model

python pix2pix.py --train -c "cudnn" -d 0 --path-gan

Trained model will be saved at log directory (default is tmp.monitor).

Generate Fakes from Trained Pix2Pix Model

python pix2pix.py --generate --model "<path to your trained model>" -c "cudnn" -d 0

Generated images will be saved at log directory (default is tmp.monitor/generated).

Note

Currently, this example is only for the facade dataset.

Reference