def build_model(opt):
    """Build model from options.

    Args:
        opt (dict): Configuration. It must contain:
            model_type (str): Model type.
    """
    opt = deepcopy(opt)
    model = MODEL_REGISTRY.get(opt['model_type'])(opt)
    logger = get_root_logger()
    logger.info(f'Model [{model.__class__.__name__}] is created.')
    return model
Build model from options.

Args:
opt (dict): Configuration. It must contain:
model_type (str): Model type.
opensora/models/super_resolution/basicsr/models/__init__.py