facebookresearch / demucs

Code for the paper Hybrid Spectrogram and Waveform Source Separation
MIT License
8.18k stars 1.03k forks source link

OSError: [WinError 126] The specified module could not be found. Error loading ".\torch\lib\backend_with_compiler.dll" or one of its dependencies. #573

Open TechVillain opened 10 months ago

TechVillain commented 10 months ago

❓ Questions

Weird... Weird? Weird!

When I ran Demucs 4.0.0 this summer, in July and August 2023, with PyTorch and CUDA 10.2, everything worked perfectly, there was no issue, GPU is running smoothly.

Then when I tried to run Demucs==4.0.0 again in November 2023 with the same PyTorch and CUDA, things are not working. I get an error.

OSError: [WinError 126] The specified module could not be found. Error loading "D:\AI\TEST-TORCH\lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies.

In November, I created this brand new environment with Miniconda, called TEST-TORCH. In this new environment, I assume, there might be some newer versions of dependencies, breaking Demucs, make it not working. The question is, which one?

Help! Help! Help!

What is harassing my dear Demucs?

CarlGao4 commented 10 months ago

Then you may need to reinstall pytorch