From d0cb4094e94065316a756c40f1aaa2667a9ccfe8 Mon Sep 17 00:00:00 2001 From: junyanz Date: Wed, 19 Jul 2017 17:15:31 -0700 Subject: update README (use_dropout -> no_dropout) --- README.md | 8 ++++---- scripts/test_cyclegan.sh | 2 +- scripts/test_pix2pix.sh | 2 +- scripts/test_single.sh | 2 +- scripts/train_cyclegan.sh | 2 +- scripts/train_pix2pix.sh | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2f3d136..44e4f27 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,13 @@ bash ./datasets/download_cyclegan_dataset.sh maps - Train a model: ```bash #!./scripts/train_cyclegan.sh -python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan +python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --no_dropout ``` - To view training results and loss plots, run `python -m visdom.server` and click the URL http://localhost:8097. To see more intermediate results, check out `./checkpoints/maps_cyclegan/web/index.html` - Test the model: ```bash #!./scripts/test_cyclegan.sh -python test.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --phase test +python test.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --phase test --no_dropout ``` The test results will be saved to a html file here: `./results/maps_cyclegan/latest_test/index.html`. @@ -87,7 +87,7 @@ bash ./datasets/download_pix2pix_dataset.sh facades - Train a model: ```bash #!./scripts/train_pix2pix.sh -python train.py --dataroot ./datasets/facades --name facades_pix2pix --model pix2pix --which_model_netG unet_256 --which_direction BtoA --lambda_A 100 --dataset_mode aligned --use_dropout --no_lsgan --norm batch +python train.py --dataroot ./datasets/facades --name facades_pix2pix --model pix2pix --which_model_netG unet_256 --which_direction BtoA --lambda_A 100 --dataset_mode aligned --no_lsgan --norm batch ``` - To view training results and loss plots, run `python -m visdom.server` and click the URL http://localhost:8097. To see more intermediate results, check out `./checkpoints/facades_pix2pix/web/index.html` - Test the model (`bash ./scripts/test_pix2pix.sh`): @@ -103,7 +103,7 @@ More example scripts can be found at `scripts` directory. If you would like to apply a pre-trained model to a collection of input photos (without image pairs), please use `--dataset_mode single` and `--model test` options. Here is a script to apply a pix2pix model to facade label maps (stored in the directory `facades/testB`). ``` bash #!./scripts/test_single.sh -python test.py --dataroot ./datasets/facades/testB/ --name facades_pix2pix --model test --which_model_netG unet_256 --which_direction BtoA --dataset_mode single --use_dropout +python test.py --dataroot ./datasets/facades/testB/ --name facades_pix2pix --model test --which_model_netG unet_256 --which_direction BtoA --dataset_mode single ``` ## Training/test Details diff --git a/scripts/test_cyclegan.sh b/scripts/test_cyclegan.sh index 714267e..aab98c5 100644 --- a/scripts/test_cyclegan.sh +++ b/scripts/test_cyclegan.sh @@ -1 +1 @@ -python test.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --phase test +python test.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --phase test --no_dropout diff --git a/scripts/test_pix2pix.sh b/scripts/test_pix2pix.sh index c6d6b32..6ad3277 100644 --- a/scripts/test_pix2pix.sh +++ b/scripts/test_pix2pix.sh @@ -1 +1 @@ -python test.py --dataroot ./datasets/facades --name facades_pix2pix --model pix2pix --which_model_netG unet_256 --which_direction BtoA --dataset_mode aligned --use_dropout --norm batch +python test.py --dataroot ./datasets/facades --name facades_pix2pix --model pix2pix --which_model_netG unet_256 --which_direction BtoA --dataset_mode aligned --norm batch diff --git a/scripts/test_single.sh b/scripts/test_single.sh index 1eb8580..cce30e4 100644 --- a/scripts/test_single.sh +++ b/scripts/test_single.sh @@ -1 +1 @@ -python test.py --dataroot ./datasets/facades/testB/ --name facades_pix2pix --model test --which_model_netG unet_256 --which_direction BtoA --dataset_mode single --use_dropout --norm batch +python test.py --dataroot ./datasets/facades/testB/ --name facades_pix2pix --model test --which_model_netG unet_256 --which_direction BtoA --dataset_mode single --norm batch diff --git a/scripts/train_cyclegan.sh b/scripts/train_cyclegan.sh index e454f9c..5d0103d 100644 --- a/scripts/train_cyclegan.sh +++ b/scripts/train_cyclegan.sh @@ -1 +1 @@ -python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --pool_size 50 +python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --pool_size 50 --no_dropout diff --git a/scripts/train_pix2pix.sh b/scripts/train_pix2pix.sh index 88031dd..ffe8dbf 100644 --- a/scripts/train_pix2pix.sh +++ b/scripts/train_pix2pix.sh @@ -1 +1 @@ -python train.py --dataroot ./datasets/facades --name facades_pix2pix --model pix2pix --which_model_netG unet_256 --which_direction BtoA --lambda_A 100 --dataset_mode aligned --no_lsgan --use_dropout --norm batch +python train.py --dataroot ./datasets/facades --name facades_pix2pix --model pix2pix --which_model_netG unet_256 --which_direction BtoA --lambda_A 100 --dataset_mode aligned --no_lsgan --norm batch -- cgit v1.2.3-70-g09d2