Skip to content

DPMSolverSinglestepScheduler lacks self.sigmas during initialization #5710

@LWprogramming

Description

@LWprogramming

Describe the bug

DPMSolverSinglestepScheduler not initialized with sigmas, but required for add_noise. only set after setting timesteps.

Reproduction

import torch
from diffusers import DPMSolverSinglestepScheduler

foo = DPMSolverSinglestepScheduler()
placeholder_latents = torch.randn(1, 64, 64)
placeholder_noise = torch.randn(1, 64, 64)
print(hasattr(foo, "sigmas")) # False
foo.add_noise(placeholder_latents, placeholder_noise, 10) # crash

Logs

No response

System Info

  • diffusers version: 0.22.2
  • Platform: Linux-5.19.17-coreweave-x86_64-with-glibc2.29
  • Python version: 3.8.10
  • PyTorch version (GPU?): 2.1.0a0+fe05266 (True)
  • Huggingface_hub version: 0.14.1
  • Transformers version: 4.30.0.dev0
  • Accelerate version: 0.19.0
  • xFormers version: not installed
  • Using GPU in script?: yes
  • Using distributed or parallel set-up in script?: yes

Who can help?

@patrickvonplaten

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstaleIssues that haven't received updates

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions