mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-04-24 06:46:13 +00:00
9 lines
256 B
Python
9 lines
256 B
Python
def AceStepTokenizerStateDictConverter(state_dict):
|
|
new_state_dict = {}
|
|
|
|
for key in state_dict:
|
|
if key.startswith("tokenizer.") or key.startswith("detokenizer."):
|
|
new_state_dict[key] = state_dict[key]
|
|
|
|
return new_state_dict
|