(parser, is_train)
| 24 | |
| 25 | |
| 26 | def modify_commandline_options(parser, is_train): |
| 27 | opt, _ = parser.parse_known_args() |
| 28 | |
| 29 | netG_cls = find_network_using_name(opt.netG, 'generator') |
| 30 | parser = netG_cls.modify_commandline_options(parser, is_train) |
| 31 | if is_train: |
| 32 | netD_cls = find_network_using_name(opt.netD, 'discriminator') |
| 33 | parser = netD_cls.modify_commandline_options(parser, is_train) |
| 34 | netE_cls = find_network_using_name('conv', 'encoder') |
| 35 | parser = netE_cls.modify_commandline_options(parser, is_train) |
| 36 | |
| 37 | return parser |
| 38 | |
| 39 | |
| 40 | def create_network(cls, opt): |
nothing calls this directly
no test coverage detected