ValueError: Can't load save_path when it is None
See original GitHub issueDescription
After resetting my computer, I can no longer successfully run Spleeter.
Step to reproduce
- Installed using Conda
- Run $ spleeter separate -i /Users/user/Desktop/song.mp3 -p spleeter:2stems -o output
- Got
ValueError: Can't load save_path when it is None.
Output
Traceback (most recent call last): File “/opt/miniconda3/bin/spleeter”, line 8, in <module> sys.exit(entrypoint()) File “/opt/miniconda3/lib/python3.7/site-packages/spleeter/main.py”, line 54, in entrypoint main(sys.argv) File “/opt/miniconda3/lib/python3.7/site-packages/spleeter/main.py”, line 46, in main entrypoint(arguments, params) File “/opt/miniconda3/lib/python3.7/site-packages/spleeter/commands/separate.py”, line 45, in entrypoint synchronous=False File “/opt/miniconda3/lib/python3.7/site-packages/spleeter/separator.py”, line 191, in separate_to_file sources = self.separate(waveform, audio_descriptor) File “/opt/miniconda3/lib/python3.7/site-packages/spleeter/separator.py”, line 157, in separate return self.separate_librosa(waveform, audio_descriptor) File “/opt/miniconda3/lib/python3.7/site-packages/spleeter/separator.py”, line 147, in separate_librosa saver.restore(sess, latest_checkpoint) File “/opt/miniconda3/lib/python3.7/site-packages/tensorflow/python/training/saver.py”, line 1274, in restore raise ValueError(“Can’t load save_path when it is None.”) ValueError: Can’t load save_path when it is None.
Environment
OS | MacOS - Mojave |
Installation type | Conda |
RAM available | 16 GB 2133 MHz LPDDR3 |
Hardware spec | 2.8 GHz Intel Core i7 |
Additional context
I had no issues previously, and can’t account for what may be happening here. Help is very much appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:19
If you Ctrl+C while spleeter is downloading a pretrained model, you may end up with this error, at which point you can simply delete the
pretrained_models
directory in your current directory and re-run spleeter to redownload the pretrained model.That did not work for me, @mmoussallam . It keeps throwing a AttributeError: enter error. What I did instead, which seemed to work, was to download the model directly from github (https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz) and extract them into the pretrained_mode/2stems folder. Doing that, it works