Skip to content

Commit 89f47c9

Browse files
authored
[Bugfix] Fix f-string formatting in image generation pipelines (#689)
Signed-off-by: ApsarasX <[email protected]>
1 parent 27b804c commit 89f47c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

vllm_omni/diffusion/models/longcat_image/pipeline_longcat_image_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def check_inputs(
466466
if height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0:
467467
logger.warning(
468468
"`height` and `width` have to be divisible by "
469-
"{self.vae_scale_factor * 2} but are {height} and {width}. "
469+
f"{self.vae_scale_factor * 2} but are {height} and {width}. "
470470
"Dimensions will be resized accordingly"
471471
)
472472

vllm_omni/diffusion/models/ovis_image/pipeline_ovis_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def check_inputs(
328328
"Provide either `prompt` or `prompt_embeds`. Cannot leave both `prompt` and `prompt_embeds` undefined."
329329
)
330330
elif prompt is not None and (not isinstance(prompt, str) and not isinstance(prompt, list)):
331-
raise ValueError("`prompt` has to be of type `str` or `list[str]` but is {type(prompt)}")
331+
raise ValueError(f"`prompt` has to be of type `str` or `list[str]` but is {type(prompt)}")
332332

333333
if negative_prompt is not None and negative_prompt_embeds is not None:
334334
raise ValueError(

vllm_omni/diffusion/models/qwen_image/pipeline_qwen_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def check_inputs(
308308
if height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0:
309309
logger.warning(
310310
f"`height` and `width` have to be divisible by {self.vae_scale_factor * 2} "
311-
"but are {height} and {width}. Dimensions will be resized accordingly"
311+
f"but are {height} and {width}. Dimensions will be resized accordingly"
312312
)
313313

314314
# if callback_on_step_end_tensor_inputs is not None and not all(

0 commit comments

Comments
 (0)