2024-12-21 05:24:55 +08:00
|
|
|
import logging
|
2024-05-27 03:37:24 +08:00
|
|
|
from spandrel import ModelLoader
|
|
|
|
|
|
|
|
def load_state_dict(state_dict):
|
2024-12-21 05:24:55 +08:00
|
|
|
logging.warning("comfy_extras.chainner_models is deprecated and has been replaced by the spandrel library.")
|
2024-05-27 03:37:24 +08:00
|
|
|
return ModelLoader().load_from_state_dict(state_dict).eval()
|