Comments (8)
I needed to manually install Torch with the command from this website (https://pytorch.org/get-started/locally/) in the anaconda environment; the requirements.txt does not install it properly.
I also installed SoundFile (pip install soundfile) as described in that Stack Overflow link you posted.
from riffusion.
I am seeing this warning when I start the flask server: /opt/conda/envs/riffusion/lib/python3.9/site-packages/torchaudio/_internal/module_utils.py:99: UserWarning: Failed to import soundfile. 'soundfile' backend is not available. warnings.warn("Failed to import soundfile. 'soundfile' backend is not available.")
however it seems like inference is successful - I still haven't verified that actual sounds are produced.
is this the same problem? can you please share how to remove this warning?
That most likely means you have soundfile
python package installed, but the actual backing library libsndfile
is not available.
You need to install it manually.
From: https://pysoundfile.readthedocs.io/en/latest/#installation
On Linux, you need to install libsndfile using your distribution’s package manager, for example
sudo apt-get install libsndfile1
.
from riffusion.
try this
apt install -y libav-tools
from riffusion.
Sorry if I wasn't clear. I was able to figure out what dependencies were needed and install them myself. This issue is about adding that info to the installation instructions so other users wouldn't have to do that troubleshooting themselves.
from riffusion.
would Dockerfile be fine for you? I am trying to do one
from riffusion.
I ran into this same error. I'd love if there's clear instructions to fix it.
from riffusion.
I am seeing this warning when I start the flask server:
/opt/conda/envs/riffusion/lib/python3.9/site-packages/torchaudio/_internal/module_utils.py:99: UserWarning: Failed to import soundfile. 'soundfile' backend is not available.
warnings.warn("Failed to import soundfile. 'soundfile' backend is not available.")
however it seems like inference is successful - I still haven't verified that actual sounds are produced.
is this the same problem? can you please share how to remove this warning?
from riffusion.
Thanks for the tip @mthrok ! I added libsndfile1
to the CI and it resolved the no audio backend warning. I also added it to the README and linked to this issue.
from riffusion.
Related Issues (20)
- Where do I download these models? HOT 2
- How to make my own model? HOT 2
- Dependencies in `requirements.txt` have module conflicts. HOT 2
- Playground doesnt work HOT 5
- Generate a music longer than 5 seconds? HOT 2
- audio2audio errors : `st.cache` is deprecated + missing 1 required positional argument: 'init_image'
- https://www.riffusion.com/about is down
- diffusers was upgraded and something need to be change?
- help, how to fix this problem? HOT 1
- ModuleNotFoundError: No module named 'diffusers.pipeline_utils' HOT 1
- Riffusion.com HOT 1
- __init__() got an unexpected keyword argument 'max_iter' HOT 7
- INFO:werkzeug:WARNING HOT 1
- RuntimeWarning: invalid value encountered in cast
- Prompt and setting of txt2img task
- ValueError: jaxlib.xla_extension.ArrayImpl
- OSError: riffusion/riffusion-model-v1 does not appear to have a file named model_index.json.
- About the language of the lyrics
- Fine-tuning riffusion/riffusion-model-v1 on a custom dataset in Google Colab
- length
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riffusion.