[fix bug] add default limit for image generation (#3381)

Signed-off-by: Junhong Liu <98734602+LJH-LBJ@users.noreply.github.com>
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Co-authored-by: lishunyang <lishunyang12@163.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-06-16 22:54:26 +08:00
1 parent e3621ec633
commit f200e988a6
3 files changed
+59 -5

No files matched your search

+2 -1
View File
@@ -638,8 +638,9 @@ class OmniServeCommand(CLISubcommand):
# Diffusion model mixed precision
omni_config_group.add_argument(
"--max-generated-image-size",
default=7680 * 4320, # 8K resolution
type=int,
help="The max size of generate image (height * width).",
help="Maximum generated image size in pixels (height * width).",
)
# TTS-specific parameters