mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 10:18:12 +00:00
Compare commits
1 Commits
version-2.
...
compatibil
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d466231d1 |
@@ -604,6 +604,13 @@ z_image_series = [
|
|||||||
"extra_kwargs": {"model_size": "0.6B"},
|
"extra_kwargs": {"model_size": "0.6B"},
|
||||||
"state_dict_converter": "diffsynth.utils.state_dict_converters.z_image_text_encoder.ZImageTextEncoderStateDictConverter",
|
"state_dict_converter": "diffsynth.utils.state_dict_converters.z_image_text_encoder.ZImageTextEncoderStateDictConverter",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
# To ensure compatibility with the `model.diffusion_model` prefix introduced by other frameworks.
|
||||||
|
"model_hash": "8cf241a0d32f93d5de368502a086852f",
|
||||||
|
"model_name": "z_image_dit",
|
||||||
|
"model_class": "diffsynth.models.z_image_dit.ZImageDiT",
|
||||||
|
"state_dict_converter": "diffsynth.utils.state_dict_converters.z_image_dit.ZImageDiTStateDictConverter",
|
||||||
|
},
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
Offical model repo: https://www.modelscope.cn/models/Lightricks/LTX-2
|
Offical model repo: https://www.modelscope.cn/models/Lightricks/LTX-2
|
||||||
|
|||||||
3
diffsynth/utils/state_dict_converters/z_image_dit.py
Normal file
3
diffsynth/utils/state_dict_converters/z_image_dit.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
def ZImageDiTStateDictConverter(state_dict):
|
||||||
|
state_dict_ = {name.replace("model.diffusion_model.", ""): state_dict[name] for name in state_dict}
|
||||||
|
return state_dict_
|
||||||
Reference in New Issue
Block a user