Skip to content

lpw_stable_diffusion.py broken when using diffusers==0.9.0 #1604

@kovtcharov

Description

@kovtcharov

Describe the bug

When initializing a diffusers pipeline, the following error occurs. Possibly related to the following updates recently?

  File ".cache/huggingface/modules/diffusers_modules/git/lpw_stable_diffusion.py", line 755, in __call__
    num_warmup_steps = len(timesteps) - num_inference_steps * self.scheduler.order
AttributeError: 'EulerAncestralDiscreteScheduler' object has no attribute 'order'

Reproduction

Simply initializing pipeline with any scheduler (even default scheduler) seems to generate the above error.

Logs

No response

System Info

  • diffusers version: 0.9.0
  • Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.35
  • Python version: 3.9.15
  • PyTorch version (GPU?): 1.13.0+cu117 (True)
  • Huggingface_hub version: 0.11.1
  • Transformers version: 4.25.1
  • Using GPU in script?: yes
  • Using distributed or parallel set-up in script?: parallel

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions