mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
d7969cb070
* Replace print with logging * nit * nit * nit * nit * nit * nit
7 lines
260 B
Python
7 lines
260 B
Python
import logging
|
|
from spandrel import ModelLoader
|
|
|
|
def load_state_dict(state_dict):
|
|
logging.warning("comfy_extras.chainner_models is deprecated and has been replaced by the spandrel library.")
|
|
return ModelLoader().load_from_state_dict(state_dict).eval()
|