diff options
| author | Taesung Park <taesung_park@berkeley.edu> | 2017-04-27 01:28:53 -0700 |
|---|---|---|
| committer | Taesung Park <taesung_park@berkeley.edu> | 2017-04-27 01:28:53 -0700 |
| commit | e5b2fd6d36b4297c4314478e88820cd10943d192 (patch) | |
| tree | aa6bf853e47a858b3e9d8a5ed051377f9b0b6415 /models/models.py | |
| parent | af7420fc67f1a69349f8155bb85a3536314e377b (diff) | |
1. Added one_direction_test_model that generates the outputs in only one direction
2. Changed the option naming from ntrain to max_dataset_size
Diffstat (limited to 'models/models.py')
| -rw-r--r-- | models/models.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/models/models.py b/models/models.py index 7e790d0..8fea4f4 100644 --- a/models/models.py +++ b/models/models.py @@ -4,12 +4,17 @@ def create_model(opt): print(opt.model) if opt.model == 'cycle_gan': from .cycle_gan_model import CycleGANModel - assert(opt.align_data == False) + #assert(opt.align_data == False) model = CycleGANModel() - if opt.model == 'pix2pix': + elif opt.model == 'pix2pix': from .pix2pix_model import Pix2PixModel assert(opt.align_data == True) model = Pix2PixModel() + elif opt.model == 'one_direction_test': + from .one_direction_test_model import OneDirectionTestModel + model = OneDirectionTestModel() + else: + raise ValueError("Model [%s] not recognized." % opt.model) model.initialize(opt) print("model [%s] was created" % (model.name())) return model |
