Cannot import name 'DPMSolverMultistepScheduler' from 'diffusers'
See original GitHub issueDescribe 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:
- Created 10 months ago
- Comments:9 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@WASasquatch use
pip install git+https://github.com/huggingface/diffusers.git
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