Repository navigation
[fix bug] PixArt inference_steps=1 - #11079
Conversation
|
@bot /style |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
@bot /style |
| try: | ||
| # For LCM one step sampling | ||
| latents = self.scheduler.step(noise_pred, t, latents, **extra_step_kwargs).denoised | ||
| except: |
There was a problem hiding this comment.
| except: | |
| except Exception: |
At minimum due to ruff. What's the exception type raised here? Is there anything else we can check instead of relying on try/except?
There was a problem hiding this comment.
This one is due to the Output difference between
diffusers/src/diffusers/schedulers/scheduling_lcm.py
Lines 48 to 49 in 1001425
and
diffusers/src/diffusers/schedulers/scheduling_ddim.py
Lines 46 to 47 in 1001425
What do you think is better to write here?
There was a problem hiding this comment.
With return_dict=False a tuple is returned, both denoised and pred_original_sample are at index 1 so we can do
latents = self.scheduler.step(noise_pred, t, latents, **extra_step_kwargs, return_dict=False)[1]There was a problem hiding this comment.
That makes sense. updated.
… which works for both lcm and dmd
|
Failing tests are unrelated. |
This PR fix the bug when PixArt inference with
num_inference_steps=1