ldm_patched

This commit is contained in:
lllyasviel
2024-01-13 21:03:58 -08:00
parent 7ad2a5c195
commit 7cb6178d47
134 changed files with 135496 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
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)