DL-Art-School/codes/models/styled_sr/__init__.py
2021-01-04 11:32:28 -07:00

10 lines
284 B
Python

from models.styled_sr.discriminator import StyleSrGanDivergenceLoss
def create_stylesr_loss(opt_loss, env):
type = opt_loss['type']
if type == 'style_sr_gan_divergence_loss':
return StyleSrGanDivergenceLoss(opt_loss, env)
else:
raise NotImplementedError