summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authortaesung89 <taesung89@gmail.com>2017-07-18 17:10:07 -0700
committerGitHub <noreply@github.com>2017-07-18 17:10:07 -0700
commit9d4e8ce330cbbedeec478586f0e5398ad3205f94 (patch)
treeb9748951ad84ddf6bf85cd6deada7e5200abc758 /README.md
parent1d60960b5038653ae841370d8bf032b1b703e17a (diff)
Added comments about resize_or_crop option
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4cd0332..2f3d136 100644
--- a/README.md
+++ b/README.md
@@ -110,6 +110,7 @@ python test.py --dataroot ./datasets/facades/testB/ --name facades_pix2pix --mod
- 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.
- During training, the current results can be viewed using two methods. First, if you set `--display_id` > 0, the results and loss plot will be shown on a local graphics web server launched by [visdom](https://github.com/facebookresearch/visdom). To do this, you should have visdom installed and a server running by the command `python -m visdom.server`. The default server URL is `http://localhost:8097`. `display_id` corresponds to the window ID that is displayed on the `visdom` server. The `visdom` display functionality is turned on by default. To avoid the extra overhead of communicating with `visdom` set `--display_id 0`. Second, the intermediate results are saved to `[opt.checkpoints_dir]/[opt.name]/web/` as an HTML file. To avoid this, set `--no_html`.
+- Images can be resized and cropped in different ways using `--resize_or_crop` option. The default option `'resize_and_crop'` resizes the image to be of size `(opt.loadSize, opt.loadSize)` and does a random crop of size `(opt.fineSize, opt.fineSize)`. `'crop'` skips the resizing step and only performs random cropping. `'scale_width'` resizes the image to have width `opt.fineSize` while keeping the aspect ratio. `'scale_width_and_crop'` first resizes the image to have width `opt.loadSize` and then does random cropping of size `(opt.fineSize, opt.fineSize)`.
### CycleGAN Datasets