question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot import name 'DPMSolverMultistepScheduler' from 'diffusers'

See original GitHub issue

Describe the bug

I’m trying to install diffusers on my new Windows 11 computer, and it’s failing on DPMSolverMultistepScheduler, which I thought was merged?

Reproduction

pip install diffusers[torch] transformers accelerate ftfy

and then try

from diffusers import DPMSolverMultistepScheduler

Logs

from diffusers import (
ImportError: cannot import name 'DPMSolverMultistepScheduler' from 'diffusers' (C:\SKYNET-MASTER\WAS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\diffusers\__init__.py)

System Info

  • diffusers version: 0.7.2
  • Platform: Windows-10-10.0.22000-SP0
  • Python version: 3.9.13
  • PyTorch version (GPU?): 1.13.0+cpu (False)
  • Huggingface_hub version: 0.10.1
  • Transformers version: 4.24.0
  • Using GPU in script?: yes
  • Using distributed or parallel set-up in script?: no

Extra Notes

On colab, this isn’t a issue, it imports fine, and runs fine. So unsure what the issue is.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
averadcommented, Nov 17, 2022

@WASasquatch use pip install git+https://github.com/huggingface/diffusers.git

1reaction
averadcommented, Nov 17, 2022

That is really strange, pulling the diffusers repo using git should result in the scheduler being available. Did you verify the diffusers version is showing as 0.8.0dev0 using diffusers-cli env

Example:

  • diffusers version: 0.8.0.dev0
  • Platform: Windows-10-10.0.22621-SP0
  • Python version: 3.10.8
  • PyTorch version (GPU?): 1.13.0+cpu (False)
  • Huggingface_hub version: 0.10.1
  • Transformers version: 4.24.0
  • Using GPU in script?: <fill in>
  • Using distributed or parallel set-up in script?: <fill in>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · huggingface/diffusers - GitHub
Diffusers : State-of-the-art diffusion models for image and audio generation in PyTorch - Issues · huggingface/diffusers.
Read more >
cannot import name 'StableDiffusionPipeline' from 'diffusers'
1 import torch. 2 from torch import autocast. ----> 3 from diffusers import StableDiffusionPipeline. ImportError: cannot import name ...
Read more >
ImportError: cannot import name 'StableDiffusionPipeline' from ...
i've installed diffusers latest version. how do i solve this? python · deep-learning · Share.
Read more >
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >
Loading Pipelines, Models, and Schedulers - Hugging Face
from diffusers import DiffusionPipeline, EulerDiscreteScheduler, DPMSolverMultistepScheduler repo_id = "runwayml/stable-diffusion-v1-5" scheduler ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found