diff options
| author | junyanz <junyanz@berkeley.edu> | 2017-06-13 00:16:25 -0700 |
|---|---|---|
| committer | junyanz <junyanz@berkeley.edu> | 2017-06-13 00:16:25 -0700 |
| commit | a93aa724af566d1c6f22d735cd7c22fc0a68c3b3 (patch) | |
| tree | ba535bb165e39526196bda6c7beda9aa88951858 /README.md | |
| parent | 7212499f839db946c9296b84d6491fe5d6097dea (diff) | |
update README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -99,6 +99,13 @@ The test results will be saved to a html file here: `./results/facades_pix2pix/l More example scripts can be found at `scripts` directory. +### Apply a pre-trained model +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 +``` + ## Training/test Details - See `options/train_options.py` and `options/base_options.py` for training flags; see `options/test_options.py` and `options/base_options.py` for test flags. - CPU/GPU (default `--gpu_ids 0`): Set `--gpu_ids -1` to use CPU mode; set `--gpu_ids 0,1,2` for multi-GPU mode. You need a large batch size (e.g. `--batchSize 32`) to benefit from multiple gpus. |
