SuperRealCo commited on
Commit
e56adfa
·
verified ·
1 Parent(s): 406e183

Delete hook_breaker_ac10a0.py

Browse files
Files changed (1) hide show
  1. hook_breaker_ac10a0.py +0 -17
hook_breaker_ac10a0.py DELETED
@@ -1,17 +0,0 @@
1
- # Prevent custom nodes from hooking anything important
2
- import comfy.model_management
3
-
4
- HOOK_BREAK = [(comfy.model_management, "cast_to")]
5
-
6
-
7
- SAVED_FUNCTIONS = []
8
-
9
-
10
- def save_functions():
11
- for f in HOOK_BREAK:
12
- SAVED_FUNCTIONS.append((f[0], f[1], getattr(f[0], f[1])))
13
-
14
-
15
- def restore_functions():
16
- for f in SAVED_FUNCTIONS:
17
- setattr(f[0], f[1], f[2])