question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: Can't load save_path when it is None

See original GitHub issue

Description

After resetting my computer, I can no longer successfully run Spleeter.

Step to reproduce

  1. Installed using Conda
  2. Run $ spleeter separate -i /Users/user/Desktop/song.mp3 -p spleeter:2stems -o output
  3. 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:19

github_iconTop GitHub Comments

24reactions
an0ndevcommented, Aug 2, 2020

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.

6reactions
caioburincommented, May 10, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tensorflow: ValueError: Can't load save_path when it is None ...
It means that model files are not there and saver.restore can't read the model files. Sometimes (In my case), you cloned a repo, ......
Read more >
saver.restore tensorflow, valueerror: can't load save_path when it is ...
A SavedModel contains a complete TensorFlow program, including weights and computation. It does not require the original model building code to run, which...
Read more >
saver.py - Google Git
Subclasses may override to load multiple saveables in a single call. ... raise ValueError("Can't load save_path when it is None.").
Read more >
Python – Tensorflow: ValueError: Can't load save_path when it is ...
I have just started working with tensorflow in python. I am trying to train Single shot detection using tensorflow for pascalvoc dataset.
Read more >
Can't load save_path when it is None_JacobTsang的博客 ...
原因:saver.restore(sess, tf.train.latest_checkpoint('/tmp')),找不到checkpoint所在路径,在restore之前添加判断checkpoint是否存在,若不存在则初始化的判断。
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found