forked from comfyanonymous/ComfyUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove pytorch_lightning dependency.
- Loading branch information
1 parent
cb180b9
commit 735ac4c
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ torchsde | |
einops | ||
transformers>=4.25.1 | ||
safetensors>=0.3.0 | ||
pytorch_lightning | ||
aiohttp | ||
accelerate | ||
pyyaml | ||
|