Skip to content

Commit 3c07840

Browse files
make style
1 parent fcb2ec8 commit 3c07840

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def check_inputs(self, prompt, strength, callback_steps):
387387
raise ValueError(f"`prompt` has to be of type `str` or `list` but is {type(prompt)}")
388388

389389
if strength < 0 or strength > 1:
390-
raise ValueError(f"The value of strength should in [1.0, 1.0] but is {strength}")
390+
raise ValueError(f"The value of strength should in [0.0, 1.0] but is {strength}")
391391

392392
if (callback_steps is None) or (
393393
callback_steps is not None and (not isinstance(callback_steps, int) or callback_steps <= 0)

src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def check_inputs(self, prompt, strength, callback_steps):
372372
raise ValueError(f"`prompt` has to be of type `str` or `list` but is {type(prompt)}")
373373

374374
if strength < 0 or strength > 1:
375-
raise ValueError(f"The value of strength should in [1.0, 1.0] but is {strength}")
375+
raise ValueError(f"The value of strength should in [0.0, 1.0] but is {strength}")
376376

377377
if (callback_steps is None) or (
378378
callback_steps is not None and (not isinstance(callback_steps, int) or callback_steps <= 0)

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def check_inputs(self, prompt, strength, callback_steps):
365365
raise ValueError(f"`prompt` has to be of type `str` or `list` but is {type(prompt)}")
366366

367367
if strength < 0 or strength > 1:
368-
raise ValueError(f"The value of strength should in [1.0, 1.0] but is {strength}")
368+
raise ValueError(f"The value of strength should in [0.0, 1.0] but is {strength}")
369369

370370
if (callback_steps is None) or (
371371
callback_steps is not None and (not isinstance(callback_steps, int) or callback_steps <= 0)

0 commit comments

Comments
 (0)