camenduru ace7627a86
test
2024-08-08 12:41:56 +03:00

6 lines
245 B
Python

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()