comfyanonymous
1 year ago
3 changed files with 15 additions and 2 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) |
Loading…
Reference in new issue