mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 06:03:31 +08:00
Keep compatibility with some custom nodes.
This commit is contained in:
parent
6b0b906a2b
commit
0fa4e42b1c
5
comfy_extras/chainner_models/model_loading.py
Normal file
5
comfy_extras/chainner_models/model_loading.py
Normal file
@ -0,0 +1,5 @@
|
||||
from spandrel import ModelLoader
|
||||
|
||||
def load_state_dict(state_dict):
|
||||
print("WARNING: comfy_extras.chainner_models is deprecated and has been replaced by the spandrel library.")
|
||||
return ModelLoader().load_from_state_dict(state_dict).eval()
|
||||
Loading…
x
Reference in New Issue
Block a user