[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:
3 files changed
+59
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user