mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-23 00:58:11 +00:00
DiffSynth-Studio 2.0 major update
This commit is contained in:
6
diffsynth/utils/state_dict_converters/nexus_gen.py
Normal file
6
diffsynth/utils/state_dict_converters/nexus_gen.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def NexusGenAutoregressiveModelStateDictConverter(state_dict):
|
||||
new_state_dict = {}
|
||||
for key in state_dict:
|
||||
value = state_dict[key]
|
||||
new_state_dict["model." + key] = value
|
||||
return new_state_dict
|
||||
Reference in New Issue
Block a user