[diffusion] z-image support (#149)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
Co-authored-by: Samit <285365963@qq.com>
This commit is contained in:
Jiangyun ZhuandSamit authored and GitHub committed 2025-12-03 02:16:36 +00:00
1 parent 5a0d7882c5
commit 7a6d2fe3f6
9 files changed
+1344 -25

No files matched your search

+6
View File
@@ -12,6 +12,11 @@ _DIFFUSION_MODELS = {
"pipeline_qwen_image",
"QwenImagePipeline",
),
"ZImagePipeline": (
"z_image",
"pipeline_z_image",
"ZImagePipeline",
),
}
@@ -41,6 +46,7 @@ _DIFFUSION_POST_PROCESS_FUNCS = {
# `post_process_func` function must be placed in {mod_folder}/{mod_relname}.py,
# where mod_folder and mod_relname are defined and mapped using `_DIFFUSION_MODELS` via the `arch` key
"QwenImagePipeline": "get_qwen_image_post_process_func",
"ZImagePipeline": "get_post_process_func",
}