Skip to content

cannot import name 'StableAudioPipeline' from 'diffusers' #9062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Gcurtis95 opened this issue Aug 2, 2024 · 3 comments
Closed

cannot import name 'StableAudioPipeline' from 'diffusers' #9062

Gcurtis95 opened this issue Aug 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Gcurtis95
Copy link

Describe the bug

Hi, I'm getting an error cannot import name 'StableAudioPipeline' from 'diffusers' (c:\Users\Garin\anaconda3\envs\DiffusersEdit1.1\lib\site-packages\diffusers_init_.py). Have only just installed diffusers so should be up to date.
I checked in the init.py and it's not listed there so tried to add it but it didn't work.

Reproduction

import torch
import soundfile as sf
from diffusers import StableAudioPipeline

pipe = StableAudioPipeline.from_pretrained("stabilityai/stable-audio-open-1.0", torch_dtype=torch.float16)
pipe = pipe.to("cuda")

Logs

No response

System Info

  • 🤗 Diffusers version: 0.29.2
  • Platform: Windows-10-10.0.22621-SP0
  • Running on a notebook?: No
  • Running on Google Colab?: No
  • Python version: 3.10.14
  • PyTorch version (GPU?): 2.4.0 (True)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Huggingface_hub version: 0.24.3
  • Transformers version: 4.43.3
  • Accelerate version: 0.33.0
  • PEFT version: not installed
  • Bitsandbytes version: not installed
  • Safetensors version: 0.4.3
  • xFormers version: not installed
  • Accelerator: NVIDIA GeForce RTX 4080 Laptop GPU, 12282 MiB VRAM
  • Using GPU in script?: yes
  • Using distributed or parallel set-up in script?: yes

Who can help?

No response

@Gcurtis95 Gcurtis95 added the bug Something isn't working label Aug 2, 2024
@tolgacangoz
Copy link
Contributor

StableAudioPipeline has just been added/merged(in 0.30.0.dev0) 3 days ago. Just install from the source.

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Sep 14, 2024
@a-r-r-o-w
Copy link
Member

Closing this issue because it was an environment version issue.

@a-r-r-o-w a-r-r-o-w removed the stale Issues that haven't received updates label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants