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

[Help] ValueError: Can't load save_path when it is None #215

Open
Rexadev opened this issue May 23, 2024 · 4 comments
Open

[Help] ValueError: Can't load save_path when it is None #215

Rexadev opened this issue May 23, 2024 · 4 comments

Comments

@Rexadev
Copy link

Rexadev commented May 23, 2024

Starting processing of all songs
Processing D:\SpleeterGUI_2.9.4.0\SpleeterGUI\Test.mp3
Usage: __main__.py separate [OPTIONS] FILES...
Try '__main__.py separate --help' for help.
Error: Missing argument 'FILES...'.
Finished processing all songs

Run complete

image

@boy1dr
Copy link
Owner

boy1dr commented May 24, 2024

For some reason, Spleeter doesn't like outputting to a root folder like "D:"
Try "D:\output" that should work better.

@Rexadev
Copy link
Author

Rexadev commented May 24, 2024

Starting processing of all songs
Processing D:\SpleeterGUI_2.9.4.0\Test.mp3
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 "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\spleeter\__main__.py", line 262, in <module>
    entrypoint()
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\spleeter\__main__.py", line 256, in entrypoint
    spleeter()
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\typer\main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\typer\main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\spleeter\__main__.py", line 137, in separate
    synchronous=False,
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\spleeter\separator.py", line 378, in separate_to_file
    sources = self.separate(waveform, audio_descriptor)
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\spleeter\separator.py", line 321, in separate
    return self._separate_librosa(waveform, audio_descriptor)
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\spleeter\separator.py", line 265, in _separate_librosa
    sess = self._get_session()
  File "D:\SpleeterGUI_2.9.4.0\python\Lib\site-packages\spleeter\separator.py", line 240, in _get_session
    saver.restore(self._session, latest_checkpoint)
  File "D:\SpleeterGUI_2.9.4.0\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

image

@boy1dr

@Rexadev Rexadev changed the title [Help] Error: Missing argument 'FILES...'. [Help] ValueError: Can't load save_path when it is None May 24, 2024
@boy1dr
Copy link
Owner

boy1dr commented May 24, 2024

Error "Can't load save_path when it is None" occurs when Spleeter fails to load the pre-trained model files.
The easiest way to fix is to close SpleeterGUI, delete the "pre-trained_models" folder and run it again.

The model files are quite large and can become damaged while downloading on an unstable internet connection.
Antivirus apps may interfere here too. Because this is a windows executable that runs a python command line that downloads stuff, antivirus can block that as malicious. if the model files refuse to download, you may have to run SpleeterGUI with admin privileges or exclude the SpleeterGUI folder from it (whitelist).

https://github.com/deezer/spleeter/wiki/5.-FAQ#save-path-error

@Rexadev
Copy link
Author

Rexadev commented May 24, 2024

2.9.5 Working I was using 2.9.4
@boy1dr

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

2 participants