|
1 | 1 | set -ex
|
2 | 2 | echo 'apply a pretrained cyclegan model'
|
3 |
| -# bash pretrained_models/download_cyclegan_model.sh horse2zebra |
4 |
| -# bash ./datasets/download_cyclegan_dataset.sh horse2zebra |
5 |
| -# python test.py --dataroot datasets/horse2zebra/testA --checkpoints_dir ./checkpoints/ --name horse2zebra_pretrained --no_dropout --model test --dataset_mode single --loadSize 256 |
| 3 | +bash pretrained_models/download_cyclegan_model.sh horse2zebra |
| 4 | +bash ./datasets/download_cyclegan_dataset.sh horse2zebra |
| 5 | +python test.py --dataroot datasets/horse2zebra/testA --checkpoints_dir ./checkpoints/ --name horse2zebra_pretrained --no_dropout --model test --dataset_mode single --loadSize 256 |
6 | 6 |
|
7 | 7 | echo 'apply a pretrained pix2pix model'
|
8 |
| -# bash pretrained_models/download_pix2pix_model.sh facades_label2photo |
9 |
| -# bash ./datasets/download_pix2pix_dataset.sh facades |
10 |
| -# python test.py --dataroot ./datasets/facades/ --which_direction BtoA --model pix2pix --name facades_label2photo_pretrained --dataset_mode aligned --which_model_netG unet_256 --norm batch |
| 8 | +bash pretrained_models/download_pix2pix_model.sh facades_label2photo |
| 9 | +bash ./datasets/download_pix2pix_dataset.sh facades |
| 10 | +python test.py --dataroot ./datasets/facades/ --which_direction BtoA --model pix2pix --name facades_label2photo_pretrained --dataset_mode aligned --which_model_netG unet_256 --norm batch |
11 | 11 |
|
12 | 12 |
|
13 | 13 | echo 'cyclegan train (1 epoch) and test'
|
14 |
| -# bash ./datasets/download_cyclegan_dataset.sh maps |
15 |
| -# python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --no_dropout --niter 1 --niter_decay 0 --max_dataset_size 100 --save_latest_freq 100 |
16 |
| -# python test.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --phase test --no_dropout |
| 14 | +bash ./datasets/download_cyclegan_dataset.sh maps |
| 15 | +python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --no_dropout --niter 1 --niter_decay 0 --max_dataset_size 100 --save_latest_freq 100 |
| 16 | +python test.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --phase test --no_dropout |
17 | 17 |
|
18 | 18 |
|
19 | 19 | echo 'pix2pix train (1 epoch) and test'
|
|
0 commit comments