another way to use backend (#638)

* another way to use backend

* another way to use backend
This commit is contained in:
lllyasviel
2023-10-10 18:59:04 -07:00
committed by GitHub
parent a0bc991e38
commit f55b15ab41
135 changed files with 134574 additions and 13 deletions
@@ -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)