Spaces:
Build error
Build error
Download cldm/model.py from Az1zT/StableVITON: direct link, hf CLI and curl.
- Browser
- Download file 214 Bytes
-
https://huggingface.co/spaces/Az1zT/StableVITON/resolve/main/cldm/model.py
- Command line
-
hf download hf://spaces/Az1zT/StableVITON/cldm/model.py
-
curl -L -o model.py https://huggingface.co/spaces/Az1zT/StableVITON/resolve/main/cldm/model.py
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 | |