[Model] Support OmniGen2 (#513)

Signed-off-by: Yupu <feng.yu.pu0330@gmail.com>
This commit is contained in:
Yupu authored and GitHub committed 2026-02-26 10:34:28 +00:00
1 parent 3eb3aa54ad
commit c9786c5c0c
6 files changed
+2536

No files matched your search

Whitespace-only changes.
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+7
View File
@@ -105,6 +105,11 @@ _DIFFUSION_MODELS = {
"pipeline_flux",
"FluxPipeline",
),
"OmniGen2Pipeline": (
"omnigen2",
"pipeline_omnigen2",
"OmniGen2Pipeline",
),
}
@@ -289,6 +294,7 @@ _DIFFUSION_POST_PROCESS_FUNCS = {
"Flux2KleinPipeline": "get_flux2_klein_post_process_func",
"NextStep11Pipeline": "get_nextstep11_post_process_func",
"FluxPipeline": "get_flux_post_process_func",
"OmniGen2Pipeline": "get_omnigen2_post_process_func",
}
_DIFFUSION_PRE_PROCESS_FUNCS = {
@@ -302,6 +308,7 @@ _DIFFUSION_PRE_PROCESS_FUNCS = {
"QwenImageLayeredPipeline": "get_qwen_image_layered_pre_process_func",
"WanPipeline": "get_wan22_pre_process_func",
"WanImageToVideoPipeline": "get_wan22_i2v_pre_process_func",
"OmniGen2Pipeline": "get_omnigen2_pre_process_func",
}