File size: 245 Bytes
20c58a2
 
 
 
 
1
2
3
4
5
6
from spandrel import ModelLoader

def load_state_dict(state_dict):
    print("WARNING: totoro_extras.chainner_models is deprecated and has been replaced by the spandrel library.")
    return ModelLoader().load_from_state_dict(state_dict).eval()