Coder Social home page Coder Social logo

Comments (8)

jparmstr avatar jparmstr commented on July 2, 2024 1

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.

mthrok avatar mthrok commented on July 2, 2024 1

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.

batrlatom avatar batrlatom commented on July 2, 2024

try this
apt install -y libav-tools

from riffusion.

DaemonAlchemist avatar DaemonAlchemist commented on July 2, 2024

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.

batrlatom avatar batrlatom commented on July 2, 2024

would Dockerfile be fine for you? I am trying to do one

from riffusion.

jordanjalles avatar jordanjalles commented on July 2, 2024

I ran into this same error. I'd love if there's clear instructions to fix it.

from riffusion.

eran-sefirot avatar eran-sefirot commented on July 2, 2024

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.

hmartiro avatar hmartiro commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.