mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-19 14:58:12 +00:00
7 lines
209 B
Python
7 lines
209 B
Python
def AnimaDiTStateDictConverter(state_dict):
|
|
new_state_dict = {}
|
|
for key in state_dict:
|
|
value = state_dict[key]
|
|
new_state_dict[key.replace("net.", "")] = value
|
|
return new_state_dict
|