Files
storyteller-ml/workflows/comfy/ComfyUI/comfy/checkpoint_pickle.py
T
Brandon Thomas cd06f71dc7 Remove comfy submodule
test commit

remove submodule

Add ComfyUI @ c5a369a33ddb622827552716d9b0119035a2e666

Comfy upstream SHA: c5a369a33ddb622827552716d9b0119035a2e666

add custom node dependnencies

add large checkpoint for comfyui
2024-02-03 21:21:57 -05:00

14 lines
286 B
Python

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)