huny_02 / comfy /checkpoint_pickle.py
alexShangeeth's picture
Initial commit for ComfyUI files
26ca9da
raw
history blame
286 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)