Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated fromΒ
rlawjdghek/StableVITON
Jaeyo03
/
FitFit
like
3
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
f9d01c1
FitFit
/
cldm
/
model.py
rlawjdghek
stableviton
80ccb59
over 1 year ago
raw
Copy download link
history
blame
Safe
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