Spaces:
Runtime error
Runtime error
Download comfy_extras/chainner_models/model_loading.py from danielpucwb/AI-QR-code-generator: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/spaces/danielpucwb/AI-QR-code-generator/resolve/main/comfy_extras/chainner_models/model_loading.py
- Command line
-
hf download hf://spaces/danielpucwb/AI-QR-code-generator/comfy_extras/chainner_models/model_loading.py
-
curl -L -o model_loading.py https://huggingface.co/spaces/danielpucwb/AI-QR-code-generator/resolve/main/comfy_extras/chainner_models/model_loading.py
260 Bytes
| import logging | |
| from spandrel import ModelLoader | |
| def load_state_dict(state_dict): | |
| logging.warning("comfy_extras.chainner_models is deprecated and has been replaced by the spandrel library.") | |
| return ModelLoader().load_from_state_dict(state_dict).eval() | |