[Misc] Clean logs for image gen task (#3414)

Signed-off-by: wuhang <wuhang6@huawei.com>
This commit is contained in:
wuhang authored and GitHub committed 2026-05-11 12:16:05 +00:00
1 parent 3bf4f2850c
commit 3f27ffbd4d
7 files changed
+21 -19

No files matched your search

@@ -536,8 +536,10 @@ class ZImagePipeline(nn.Module, DiffusionPipelineProfilerMixin):
image = PIL.Image.open(raw_image) if isinstance(raw_image, str) else raw_image
# strength is currently only applicable for Z-Image I2I; other pipelines ignore this parameter
strength = req.sampling_params.strength if req.sampling_params.strength is not None else strength
if strength is not None and image is None:
explicit_strength = req.sampling_params.strength is not None
if explicit_strength:
strength = req.sampling_params.strength
if explicit_strength and image is None:
logger.warning(
"strength parameter (%.2f) is only applicable for image-to-image (I2I) generation. "
"It will be ignored for text-to-image (T2I) generation.",