[Feature] Add official LTX multimodal guidance and precision guard (#5148)
Signed-off-by: mglyn <1203789601@qq.com>
This commit is contained in:
1 parent
66a9b0c84f
commit
12d75cf63a
51 files changed
+4547
-3062
No files matched your search
@@ -71,20 +71,10 @@ _DIFFUSION_MODELS = {
|
||||
"pipeline_ltx2",
|
||||
"LTX2Pipeline",
|
||||
),
|
||||
"LTX2ImageToVideoPipeline": (
|
||||
"ltx2",
|
||||
"pipeline_ltx2",
|
||||
"LTX2ImageToVideoPipeline",
|
||||
),
|
||||
"LTX2TwoStagesPipeline": (
|
||||
"LTX2DistilledPipeline": (
|
||||
"ltx2",
|
||||
"pipeline_ltx2_two_stage",
|
||||
"LTX2TwoStagesPipeline",
|
||||
),
|
||||
"LTX2ImageToVideoTwoStagesPipeline": (
|
||||
"ltx2",
|
||||
"pipeline_ltx2_two_stage",
|
||||
"LTX2ImageToVideoTwoStagesPipeline",
|
||||
"LTX2DistilledPipeline",
|
||||
),
|
||||
"LTX2T2VDMD2Pipeline": (
|
||||
"ltx2",
|
||||
@@ -96,16 +86,6 @@ _DIFFUSION_MODELS = {
|
||||
"pipeline_ltx2",
|
||||
"LTX2I2VDMD2Pipeline",
|
||||
),
|
||||
"LTX23Pipeline": (
|
||||
"ltx2",
|
||||
"pipeline_ltx2",
|
||||
"LTX23Pipeline",
|
||||
),
|
||||
"LTX23ImageToVideoPipeline": (
|
||||
"ltx2",
|
||||
"pipeline_ltx2",
|
||||
"LTX23ImageToVideoPipeline",
|
||||
),
|
||||
"StableAudioPipeline": (
|
||||
"stable_audio",
|
||||
"pipeline_stable_audio",
|
||||
@@ -449,7 +429,7 @@ def _apply_sequence_parallel_if_enabled(model, od_config: OmniDiffusionConfig) -
|
||||
|
||||
for attr in transformer_attrs:
|
||||
if not hasattr(model, attr):
|
||||
# Some pipeline like LTX2TwoStagesPipeline have recursive
|
||||
# Some pipelines have recursive
|
||||
# modules that have the transformer
|
||||
module = find_module_with_attr(model, attr)
|
||||
if module is None:
|
||||
@@ -519,13 +499,9 @@ _DIFFUSION_POST_PROCESS_FUNCS = {
|
||||
"WanPipeline": "get_wan22_post_process_func",
|
||||
"WanVACEPipeline": "get_wan22_vace_post_process_func",
|
||||
"LTX2Pipeline": "get_ltx2_post_process_func",
|
||||
"LTX2TwoStagesPipeline": "get_ltx2_post_process_func",
|
||||
"LTX2ImageToVideoPipeline": "get_ltx2_post_process_func",
|
||||
"LTX2ImageToVideoTwoStagesPipeline": "get_ltx2_post_process_func",
|
||||
"LTX2DistilledPipeline": "get_ltx2_post_process_func",
|
||||
"LTX2T2VDMD2Pipeline": "get_ltx2_post_process_func",
|
||||
"LTX2I2VDMD2Pipeline": "get_ltx2_post_process_func",
|
||||
"LTX23Pipeline": "get_ltx2_post_process_func",
|
||||
"LTX23ImageToVideoPipeline": "get_ltx2_post_process_func",
|
||||
"StableAudioPipeline": "get_stable_audio_post_process_func",
|
||||
"SoulXSingerPipeline": "get_soulxsinger_post_process_func",
|
||||
"SoulXSingerSVCPipeline": "get_soulxsinger_post_process_func",
|
||||
|
||||
Reference in new issue
Block a user