summaryrefslogtreecommitdiff
path: root/models/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'models/models.py')
-rwxr-xr-xmodels/models.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/models/models.py b/models/models.py
index 351483c..0ba442f 100755
--- a/models/models.py
+++ b/models/models.py
@@ -3,8 +3,12 @@
import torch
def create_model(opt):
- from .pix2pixHD_model import Pix2PixHDModel
- model = Pix2PixHDModel()
+ if opt.model == 'pix2pixHD':
+ from .pix2pixHD_model import Pix2PixHDModel
+ model = Pix2PixHDModel()
+ else:
+ from .ui_model import UIModel
+ model = UIModel()
model.initialize(opt)
print("model [%s] was created" % (model.name()))