Skip to content

Commit caa0110

Browse files
committed
try w/o strength
1 parent 5452431 commit caa0110

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -848,12 +848,12 @@ def __call__(
848848
if hasattr(self.scheduler, "set_begin_index"):
849849
self.scheduler.set_begin_index(0)
850850

851-
timesteps, num_inference_steps = self.get_timesteps(num_inference_steps, strength, device)
852-
if num_inference_steps < 1:
853-
raise ValueError(
854-
f"After adjusting the num_inference_steps by strength parameter: {strength}, the number of pipeline"
855-
f"steps is {num_inference_steps} which is < 1 and not appropriate for this pipeline."
856-
)
851+
#timesteps, num_inference_steps = self.get_timesteps(num_inference_steps, strength, device)
852+
# if num_inference_steps < 1:
853+
# raise ValueError(
854+
# f"After adjusting the num_inference_steps by strength parameter: {strength}, the number of pipeline"
855+
# f"steps is {num_inference_steps} which is < 1 and not appropriate for this pipeline."
856+
# )
857857
latent_timestep = timesteps[:1].repeat(batch_size * num_images_per_prompt)
858858

859859
# 5. Prepare latents.

0 commit comments

Comments
 (0)