Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
next-social
/
ComfyUI_Seg_VITON2
like
0
Model card
Files
Files and versions
Community
d4ed190
ComfyUI_Seg_VITON2
/
cldm
/
model.py
CCChen
换装
1900386
about 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