Spaces:
Paused
Paused
Download comfy/checkpoint_pickle.py from dssddsdf/Chroma-Extra: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/dssddsdf/Chroma-Extra/resolve/main/comfy/checkpoint_pickle.py
- Command line
-
hf download hf://spaces/dssddsdf/Chroma-Extra/comfy/checkpoint_pickle.py
-
curl -L -o checkpoint_pickle.py https://huggingface.co/spaces/dssddsdf/Chroma-Extra/resolve/main/comfy/checkpoint_pickle.py
299 Bytes
| import pickle | |
| load = pickle.load | |
| class Empty: | |
| pass | |
| class Unpickler(pickle.Unpickler): | |
| def find_class(self, module, name): | |
| #TODO: safe unpickle | |
| if module.startswith("pytorch_lightning"): | |
| return Empty | |
| return super().find_class(module, name) | |