StableVITON / cldm /model.py
rlawjdghek's picture
stableviton
80ccb59
raw
history blame contribute delete
214 Bytes
from ldm.util import instantiate_from_config
def get_state_dict(d):
return d.get('state_dict', d)
def create_model(config, **kwargs):
model = instantiate_from_config(config.model).cpu()
return model