Shadhil's picture
Upload 340 files
0b5f327 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