update code

This commit is contained in:
Artiprocher
2025-11-17 10:41:11 +08:00
parent ea0a5c5908
commit 47246060d6
24 changed files with 1828 additions and 22 deletions

View File

@@ -0,0 +1,4 @@
def FluxTextEncoderT5StateDictConverter(state_dict):
state_dict_ = {i: state_dict[i] for i in state_dict}
state_dict_["encoder.embed_tokens.weight"] = state_dict["shared.weight"]
return state_dict_