2020-11-15 03:16:07 +00:00
|
|
|
from models.eval.sr_style import SrStyleTransferEvaluator
|
2020-11-13 18:03:54 +00:00
|
|
|
from models.eval.style import StyleTransferEvaluator
|
|
|
|
|
|
|
|
|
|
|
|
def create_evaluator(model, opt_eval, env):
|
|
|
|
type = opt_eval['type']
|
|
|
|
if type == 'style_transfer':
|
|
|
|
return StyleTransferEvaluator(model, opt_eval, env)
|
2020-11-15 03:16:07 +00:00
|
|
|
elif type == 'sr_stylegan':
|
|
|
|
return SrStyleTransferEvaluator(model, opt_eval, env)
|
2020-11-13 18:03:54 +00:00
|
|
|
else:
|
|
|
|
raise NotImplementedError()
|