[Perf][Diffusion] Add LTX2 channels-last VAE path
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
(cherry picked from commit dd6f32cb47)
This commit is contained in:
1 parent
fcf1085395
commit
81e5e8e3bb
12 files changed
+250
No files matched your search
@@ -779,6 +779,30 @@ def test_structured_diffusion_config_rejects_non_boolean_compile_dynamic():
|
||||
omni_config_module._DiffusionConfigProjection(diffusion_compile_dynamic="false")
|
||||
|
||||
|
||||
def test_structured_diffusion_config_rejects_non_boolean_vae_channels_last_3d():
|
||||
with pytest.raises(ValidationError, match="vae_use_channels_last_3d"):
|
||||
omni_config_module._DiffusionConfigProjection(vae_use_channels_last_3d="true")
|
||||
|
||||
|
||||
def test_from_pipeline_config_routes_vae_channels_last_3d(tmp_path):
|
||||
deploy_path = tmp_path / "dreamzero_vae_layout.yaml"
|
||||
deploy_path.write_text(
|
||||
"\n".join(
|
||||
[
|
||||
"pipeline: dreamzero",
|
||||
"async_chunk: false",
|
||||
"stages:",
|
||||
" - stage_id: 0",
|
||||
" vae_use_channels_last_3d: true",
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
stage = _from_pipeline_key("dreamzero", deploy_config_path=str(deploy_path)).stage_by_id(0)
|
||||
|
||||
assert stage.diffusion_config.vae_use_channels_last_3d is True
|
||||
|
||||
|
||||
def test_structured_diffusion_config_rejects_invalid_compile_granularity():
|
||||
with pytest.raises(ValidationError, match="diffusion_compile_granularity"):
|
||||
omni_config_module._DiffusionConfigProjection(diffusion_compile_granularity="block")
|
||||
|
||||
Reference in new issue
Block a user