jorag2 / ComfyUI /comfy /checkpoint_pickle.py
flatcherlee's picture
Upload 273 files
932ae62 verified
raw
history blame
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)