Spaces:
Runtime error
Runtime error
File size: 414 Bytes
1a79cb6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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
|