mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-14 13:17:32 +00:00
Keep compatibility with some custom nodes.
This commit is contained in:
parent
9a151b7def
commit
16a493a190
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…
Reference in New Issue
Block a user