Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Can't load save_path when it is None. #199

Closed
nottellyou opened this issue May 26, 2023 · 5 comments
Closed

Error: Can't load save_path when it is None. #199

nottellyou opened this issue May 26, 2023 · 5 comments

Comments

@nottellyou
Copy link

Hi, The SpleeterGui encountered an error while working and could not separate the music.
The infomation:

Starting processing of all songs
Processing F:\temp_files\au\22222222.wav
Traceback (most recent call last):
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 193, in _run_module_as_main
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 85, in _run_code
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\spleeter\__main__.py", line 262, in <module>
    entrypoint()
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\spleeter\__main__.py", line 256, in entrypoint
    spleeter()
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\typer\main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\typer\main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\spleeter\__main__.py", line 137, in separate
    synchronous=False,
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\spleeter\separator.py", line 378, in separate_to_file
    sources = self.separate(waveform, audio_descriptor)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\spleeter\separator.py", line 321, in separate
    return self._separate_librosa(waveform, audio_descriptor)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\spleeter\separator.py", line 265, in _separate_librosa
    sess = self._get_session()
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\spleeter\separator.py", line 240, in _get_session
    saver.restore(self._session, latest_checkpoint)
  File "E:\AI\SpleeterGUI\python\Lib\site-packages\tensorflow\python\training\saver.py", line 1291, in restore
    raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None.
Finished processing all songs

Run complete

Note: There is no this path D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py on my disk.

version: 2.9.4.0
CPU: I5-6200u
os_ver: win7_x64

@boy1dr
Copy link
Owner

boy1dr commented May 26, 2023

Thanks for including the full error.

That weird D:\ path is baked in to the code, not the problem.

The source folder looks ok, what's your save path?

@nottellyou
Copy link
Author

I select the save_path F:\temp_files\au\tmp.

The answer seems to be here:
#188

@boy1dr
Copy link
Owner

boy1dr commented May 26, 2023

That was my next guess. Your save path looks fine.

Python will do a download of the model files the first time you each stem mode, something must be blocking it.

You can try running SpleeterGUI with administrative privileges, or use the older larger installer. Let me know if you can't find that link.

@nottellyou
Copy link
Author

Thinks @boy1dr

@wei-z-git
Copy link

wei-z-git commented Oct 3, 2023

I have the same issue even I run with admin privileges, it seems it didn`t download the models...
So I just download these models(https://github.com/deezer/spleeter/releases) into \SpleeterGUI\pretrained_models manually...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants