Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def check_inputs(
if height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0:
logger.warning(
"`height` and `width` have to be divisible by "
"{self.vae_scale_factor * 2} but are {height} and {width}. "
f"{self.vae_scale_factor * 2} but are {height} and {width}. "
"Dimensions will be resized accordingly"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def check_inputs(
"Provide either `prompt` or `prompt_embeds`. Cannot leave both `prompt` and `prompt_embeds` undefined."
)
elif prompt is not None and (not isinstance(prompt, str) and not isinstance(prompt, list)):
raise ValueError("`prompt` has to be of type `str` or `list[str]` but is {type(prompt)}")
raise ValueError(f"`prompt` has to be of type `str` or `list[str]` but is {type(prompt)}")

if negative_prompt is not None and negative_prompt_embeds is not None:
raise ValueError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def check_inputs(
if height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0:
logger.warning(
f"`height` and `width` have to be divisible by {self.vae_scale_factor * 2} "
"but are {height} and {width}. Dimensions will be resized accordingly"
f"but are {height} and {width}. Dimensions will be resized accordingly"
)

# if callback_on_step_end_tensor_inputs is not None and not all(
Expand Down