VfiTest / modules /models /models.py
SuyeonJ's picture
Upload folder using huggingface_hub
8d015d4 verified
raw
history blame
222 Bytes
import copy
models = {}
def register(name):
def decorator(cls):
models[name] = cls
return cls
return decorator
def make(cfgs):
model = models[cfgs['model']['name']](cfgs)
return model