Download comfy_extras/chainner_models/model_loading.py from fotographerai/Zen-Style-Shape: direct link, hf CLI and curl.
- Browser
- Download file 244 Bytes
-
https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/9658eb70e835595577b263961c93c8fb046737a6/comfy_extras/chainner_models/model_loading.py
- Command line
-
hf download hf://spaces/fotographerai/Zen-Style-Shape@9658eb70e835595577b263961c93c8fb046737a6/comfy_extras/chainner_models/model_loading.py
-
curl -L -o model_loading.py https://huggingface.co/spaces/fotographerai/Zen-Style-Shape/resolve/9658eb70e835595577b263961c93c8fb046737a6/comfy_extras/chainner_models/model_loading.py
244 Bytes
| from spandrel import ModelLoader | |
| def load_state_dict(state_dict): | |
| print("WARNING: comfy_extras.chainner_models is deprecated and has been replaced by the spandrel library.") | |
| return ModelLoader().load_from_state_dict(state_dict).eval() | |