facebookresearch / demucs

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

got soundfile.LibsndfileError: <unprintable LibsndfileError object> when start training #602

Open Stillalive-myj opened 1 month ago

Stillalive-myj commented 1 month ago

❓ Questions

I start the command "dora run variant=myj" and got this I don't have a NVIDIA GPU, so this is just a test Error executing job with overrides: ['variant=myj']

All outputs here

C:\Users\Stillalive-myj\demucs-main\demucs\train.py:21: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio C:\Users\Stillalive-myj.conda\envs\demucs\lib\site-packages\hydra_internal\hydra.py:119: UserWarning: Future Hydra versions will no longer change working directory at job runtime by default. See https://hydra.cc/docs/1.2/upgrades/1.1_to_1.2/changes_to_job_working_dir/ for more information. ret = run_job( [06-01 19:51:47][demucs.train][INFO] - For logs, checkpoints and samples check C:\Users\Stillalive-myj\demucs-main\outputs\xps\c1d4f44e [06-01 19:51:47][dora.distrib][INFO] - world_size is 1, skipping init. [06-01 19:51:48][demucs.train][INFO] - train/valid set size: 18368 14 [06-01 19:51:48][demucs.solver][INFO] - ---------------------------------------------------------------------- [06-01 19:51:48][demucs.solver][INFO] - Training... C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta C:\Users\Stillalive-myj\demucs-main\demucs\repitch.py:14: UserWarning: TorchAudio's global backend is now deprecated. Please enable distpatcher by setting TORCHAUDIO_USE_BACKEND_DISPATCHER=1, and specify backend when calling load/info/save function. import torchaudio as ta Error executing job with overrides: ['variant=myj'] Traceback (most recent call last): File "C:\Users\Stillalive-myj\demucs-main\demucs\train.py", line 244, in main solver.train() File "C:\Users\Stillalive-myj\demucs-main\demucs\solver.py", line 195, in train metrics['train'] = self._run_one_epoch(epoch) File "C:\Users\Stillalive-myj\demucs-main\demucs\solver.py", line 306, in _run_one_epoch for idx, sources in enumerate(logprog): File "C:\Users\Stillalive-myj.conda\envs\demucs\lib\site-packages\dora\log.py", line 70, in next value = next(self._iterator) File "C:\Users\Stillalive-myj.conda\envs\demucs\lib\site-packages\torch\utils\data\dataloader.py", line 630, in next data = self._next_data() File "C:\Users\Stillalive-myj.conda\envs\demucs\lib\site-packages\torch\utils\data\dataloader.py", line 1345, in _next_data return self._process_data(data) File "C:\Users\Stillalive-myj.conda\envs\demucs\lib\site-packages\torch\utils\data\dataloader.py", line 1371, in _process_data data.reraise() File "C:\Users\Stillalive-myj.conda\envs\demucs\lib\site-packages\torch_utils.py", line 694, in reraise raise exception soundfile.LibsndfileError:

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Stillalive-myj commented 1 month ago

may be a bug?

CarlGao4 commented 1 month ago

Please provide more information by running: python -c "import torch,torchaudio,soundfile,sys;print(sys.version,torch.__version__,torchaudio.__version__,soundfile.__version__,soundfile.__libsndfile_version__,sep='\n')"

Stillalive-myj commented 1 month ago

Please provide more information by running: python -c "import torch,torchaudio,soundfile,sys;print(sys.version,torch.__version__,torchaudio.__version__,soundfile.__version__,soundfile.__libsndfile_version__,sep='\n')"

3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 12:38:46) [MSC v.1929 64 bit (AMD64)] 2.1.2+cpu 2.1.2+cpu 0.12.1 1.2.0