Download clean/video/npr_video/options/test_options.py from deepsafe/model-code: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/deepsafe/model-code/resolve/main/clean/video/npr_video/options/test_options.py
- Command line
-
hf download hf://deepsafe/model-code/clean/video/npr_video/options/test_options.py
-
curl -L -o test_options.py https://huggingface.co/deepsafe/model-code/resolve/main/clean/video/npr_video/options/test_options.py
804 Bytes
| from .base_options import BaseOptions | |
| class TestOptions(BaseOptions): | |
| def initialize(self, parser): | |
| parser = BaseOptions.initialize(self, parser) | |
| # parser.add_argument('--dataroot') | |
| parser.add_argument('--model_path') | |
| parser.add_argument('--no_resize', action='store_true') | |
| parser.add_argument('--no_crop', action='store_true') | |
| parser.add_argument('--eval', action='store_true', help='use eval mode during test time.') | |
| parser.add_argument('--earlystop_epoch', type=int, default=15) | |
| parser.add_argument('--lr', type=float, default=0.00002, help='initial learning rate for adam') | |
| parser.add_argument('--niter', type=int, default=0, help='# of iter at starting learning rate') | |
| self.isTrain = False | |
| return parser | |