Shadhil's picture
Upload 425 files
1a79cb6 verified
raw
history blame contribute delete
414 Bytes
from .base_model import BaseModel
from .ganimation import GANimationModel
from .stargan import StarGANModel
def create_model(opt):
# specify model name here
if opt.model == "ganimation":
instance = GANimationModel()
elif opt.model == "stargan":
instance = StarGANModel()
else:
instance = BaseModel()
instance.initialize(opt)
instance.setup()
return instance