mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-19 06:23:43 +00:00
6 lines
210 B
Python
6 lines
210 B
Python
def ZImageTextEncoderStateDictConverter(state_dict):
|
|
state_dict_ = {}
|
|
for name in state_dict:
|
|
if name != "lm_head.weight":
|
|
state_dict_[name] = state_dict[name]
|
|
return state_dict_ |