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

[Bug] Error spleeting #686

Closed
antonio-petricca opened this issue Dec 11, 2021 · 2 comments
Closed

[Bug] Error spleeting #686

antonio-petricca opened this issue Dec 11, 2021 · 2 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@antonio-petricca
Copy link

Hi, I get this error for any run:

INFO:tensorflow:Apply unet for vocals_spectrogram
WARNING:tensorflow:From /home/antonio/.local/lib/python3.6/site-packages/keras/layers/normalization/batch_normalization.py:520: _colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
INFO:tensorflow:Apply unet for accompaniment_spectrogram
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz
Traceback (most recent call last):
File "/home/antonio/.local/bin/spleeter", line 8, in
sys.exit(entrypoint())
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/main.py", line 256, in entrypoint
spleeter()
File "/home/antonio/.local/lib/python3.6/site-packages/typer/main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "/home/antonio/.local/lib/python3.6/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/antonio/.local/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/antonio/.local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/antonio/.local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/antonio/.local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/antonio/.local/lib/python3.6/site-packages/typer/main.py", line 500, in wrapper
return callback(**use_params) # type: ignore
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/main.py", line 137, in separate
synchronous=False,
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/separator.py", line 378, in separate_to_file
sources = self.separate(waveform, audio_descriptor)
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/separator.py", line 321, in separate
return self._separate_librosa(waveform, audio_descriptor)
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/separator.py", line 265, in _separate_librosa
sess = self._get_session()
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/separator.py", line 237, in _get_session
model_directory: str = provider.get(self._params["model_dir"])
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/model/provider/init.py", line 80, in get
self.download(model_directory.split(sep)[-1], model_directory)
File "/home/antonio/.local/lib/python3.6/site-packages/spleeter/model/provider/github.py", line 141, in download
response.raise_for_status()
File "/home/antonio/.local/lib/python3.6/site-packages/httpx/_models.py", line 1508, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Redirect response '302 Found' for url 'https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz'
Redirect location: 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/211124697/e5a4d280-f98d-11e9-905c-849465861ed7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211211%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211211T115334Z&X-Amz-Expires=300&X-Amz-Signature=b32fd0cb43a155f17763aadd5ec2624d4b961e1df2e86ca1d2462a4bfb5f2c75&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=211124697&response-content-disposition=attachment%3B%20filename%3D2stems.tar.gz&response-content-type=application%2Foctet-stream'
For more information check: https://httpstatuses.com/302

@antonio-petricca antonio-petricca added bug Something isn't working invalid This doesn't seem right labels Dec 11, 2021
@romi1502
Copy link
Member

Hi @antonio-petricca
This seems to be an error while downloading the model weights from github.com .
Just retrying may be sufficient to solve the issue. Otherwise, you have to ensure that the system on which you try to run spleeter can access github.com.
Finally if it still does not work, you can download the model manually from the release page and unarchive it in a "pretrained_models" folder located where you want to run spleeter.

claui added a commit to claui/spleeter that referenced this issue Dec 2, 2022
Follow redirects when downloading from GitHub via httpx.
Fixes issue deezer#686 [1].

[1]: deezer#686

Reported-by: Antonio Petricca <antonio.petricca@gmail.com>
@claui
Copy link

claui commented Dec 2, 2022

Hi @antonio-petricca This seems to be an error while downloading the model weights from github.com . Just retrying may be sufficient to solve the issue.

@romi1502 Retrying doesn’t work for me because GitHub always replies with a 302.
That would be fixed in PR #808.

claui added a commit to claui/spleeter that referenced this issue Dec 2, 2022
Follow redirects when downloading from GitHub via httpx.
Fixes issue deezer#686 [1].

[1]: deezer#686

Reported-by: Antonio Petricca <antonio.petricca@gmail.com>
claui added a commit to claui/spleeter that referenced this issue Jun 20, 2023
Follow redirects when downloading from GitHub via httpx.
Fixes issue deezer#686 [1].

[1]: deezer#686

Reported-by: Antonio Petricca <antonio.petricca@gmail.com>
claui added a commit to claui/spleeter that referenced this issue Jul 20, 2023
Follow redirects when downloading from GitHub via httpx.
Fixes issue deezer#686 [1].

[1]: deezer#686

Reported-by: Antonio Petricca <antonio.petricca@gmail.com>
claui added a commit to claui/spleeter that referenced this issue Jul 20, 2023
Follow redirects when downloading from GitHub via httpx.
Fixes issue deezer#686 [1].

[1]: deezer#686

Reported-by: Antonio Petricca <antonio.petricca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants