mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-19 06:32:27 +00:00
8 lines
261 B
Python
8 lines
261 B
Python
def WanImageEncoderStateDictConverter(state_dict):
|
|
state_dict_ = {}
|
|
for name in state_dict:
|
|
if name.startswith("textual."):
|
|
continue
|
|
name_ = "model." + name
|
|
state_dict_[name_] = state_dict[name]
|
|
return state_dict_ |