[diffusion] chore: avoid raising error when output resolution is not optimal (#17030)

This commit is contained in:
Mick
2026-01-14 11:36:27 +08:00
committed by GitHub
parent 9524040220
commit a5348eac4c

View File

@@ -346,11 +346,10 @@ class SamplingParams:
[f"{w}x{h}" for w, h in self.supported_resolutions]
)
error_msg = (
f"Unsupported resolution: {self.width}x{self.height}. "
f"Unsupported resolution: {self.width}x{self.height}, output quality may suffer. "
f"Supported resolutions: {supported_str}"
)
logger.error(error_msg)
raise ValueError(error_msg)
logger.warning(error_msg)
if pipeline_config.task_type.is_image_gen():
# settle num_frames