cfui / comfy_extras /chainner_models /model_loading.py
spongyicybulk's picture
Add minimal CPU Docker Space deployment
c4ca7cf verified
Raw
History Blame Contribute Delete
266 Bytes
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()