Skip to content

Commit

Permalink
Keep compatibility with some custom nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed May 26, 2024
1 parent 9a151b7 commit 16a493a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions comfy_extras/chainner_models/model_loading.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 16a493a

Please sign in to comment.