Open TaakoMagnusen opened 10 months ago
ffmpeg was install via brew like brew install ffmpeg
and is available in the path, so unsure what's going on
PyTorch changed the method to handle backends in 2.1.0, please try downgrading to 2.0.1
it seems adding --mp3
fixes the error and allows me to separate both flac and mp3. But this isn't listed as a required argument to the tool
Writing mp3 uses other libraries instead of torchaudio
Hello how can fixed that bug to be able to use torch and separate the tracks in wav format ? Any ideas thanks a lot everybody.
You can downgrade pytorch to 2.0.1, which uses the legacy backend handler
I had this problem (under MacOS with PyTorch 2.1); ran this command to downgrade torchaudio and PyTorch which fixed it for me - now I can output to wav files:
python3 -m pip install torchaudio==2.0.1 -f https://download.pytorch.org/whl/torch_stable.html
Thanks a lot
Le sam. 6 janv. 2024, 19:25, MrSimmo @.***> a Γ©crit :
I had this problem (under MacOS with PyTorch 2.1); ran this command to downgrade torchaudio and PyTorch which fixed it for me - now I can output to wav files:
python3 -m pip install torchaudio==2.0.1 -f https://download.pytorch.org/whl/torch_stable.html
β Reply to this email directly, view it on GitHub https://github.com/facebookresearch/demucs/issues/570#issuecomment-1879775447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACY4R6AV76QPCQTDIEQHAGTYNGJKTAVCNFSM6AAAAAA7KDGG62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZG43TKNBUG4 . You are receiving this because you commented.Message ID: @.***>
This works.Thanks soooo much
Added on Feb. 6, 2024: You can also fix this by setting the environment variable TORCHAUDIO_USE_BACKEND_DISPATCHER=0
if you are using 2.1.x (2.2 and above can't be solved using this)
installing soundfile
fixes it, and autodetects the format for me. On any version >2.0
installing
soundfile
fixes it, and autodetects the format for me. On any version >2.0
This should work on Windows, but not macOS and Linux unless your PyTorch version is greater or equal to 2.2.0
installing
soundfile
fixes it, and autodetects the format for me. On any version >2.0This should work on Windows, but not macOS and Linux unless your PyTorch version is greater or equal to 2.2.0
I actually tried it on Ubuntu 23.10. Might have messed up my PyTorch versions, between my different environments if you say so.
But I think this should be the preferred solution either way, for anyone experiencing the issue. As it doesn't require neither downgrading or modifying the application code
on windows: pip install torch==2.0.1
is not working. It is giving this error:
ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: 2.2.0, 2.2.1)
ERROR: No matching distribution found for torch==2.0.1
Tried for both torchaudio and torch and even though i have installed soundfile and sox using pip but its still showing no backend available. ffmpeg i have installed through choco and added it to the path but its not able to locate any backend.
ValueError: ("Unsupported backend 'ffmpeg' specified; ", 'please select one of [] instead.')
You need to install torch following the instructions on https://pytorch.org/get-started/previous-versions/#v201
pip uninstall PySoundFile && pip install PySoundFile
None of the above works for me.
You need to install torch following the instructions on https://pytorch.org/get-started/previous-versions/#v201
Nope, not on any Python version after 3.11!
Nothing works, after installing conda and trying everything in docs/mac.md
(which looks like it hasn't been updated in some time) and every combination of the above on my M1 Max MacBook Pro with Sonoma.
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 -c pytorch
Channels:
- pytorch
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: - warning libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed
LibMambaUnsatisfiableError: Encountered problems while solving:
- package torchvision-0.15.2-py310_cpu requires python >=3.10,<3.11.0a0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
ββ pin-1 is installable and it requires
β ββ python 3.12.* , which can be installed;
ββ torchvision 0.15.2 is not installable because there are no viable options
ββ torchvision 0.15.2 would require
β ββ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
ββ torchvision 0.15.2 would require
β ββ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported;
ββ torchvision 0.15.2 would require
β ββ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
ββ torchvision 0.15.2 would require
ββ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported.
Yes, to use torch 2.0.1
, you can't use Python 3.12 or greater. Only 3.8 to 3.11 is available.
@bastien8060 thanks! This helped
installing
soundfile
fixes it, and autodetects the format for me. On any version >2.0
Works for me
I found a fix! Either in pip or anaconda, uninstall PySoundFile
and make sure soundfile
is installed. For some reason it works.
I'm experiencing this issue on Ubuntu 22.04. It's definitely something related to the dependencies. When installing PyTorch 2.4.0 using conda, everything works. But then, when trying to use pip and a venv, it doesn't. So the conda installation of PyTorch is including something that the pip alternative does not...
for torch 2.3.0, torchaudio 2.3.0:
pip install soundfile==0.12.1
worked for me
π Bug Report
Running demucs on my M1 Max Macbook Pro i get an error:
this happens even if i use
-d cpu
or change the stems choice, the same error happens with .flac files as wellYour Environment
M1 Max Macbook Pro with 64 GB RAM, 24 Core GPU on MacOS Ventura 13.6