[Bug] IndexError: index 1 is out of bounds for axis 1 with size 1
See original GitHub issueDescription
When I use spleeter separate
a audio file, I met this error:
Traceback (most recent call last):
File "/usr/local/bin/spleeter", line 8, in <module>
sys.exit(entrypoint())
File "/usr/local/lib/python3.6/dist-packages/spleeter/__main__.py", line 54, in entrypoint
main(sys.argv)
File "/usr/local/lib/python3.6/dist-packages/spleeter/__main__.py", line 46, in main
entrypoint(arguments, params)
File "/usr/local/lib/python3.6/dist-packages/spleeter/commands/separate.py", line 45, in entrypoint
synchronous=False
File "/usr/local/lib/python3.6/dist-packages/spleeter/separator.py", line 191, in separate_to_file
sources = self.separate(waveform, audio_descriptor)
File "/usr/local/lib/python3.6/dist-packages/spleeter/separator.py", line 157, in separate
return self.separate_librosa(waveform, audio_descriptor)
File "/usr/local/lib/python3.6/dist-packages/spleeter/separator.py", line 145, in separate_librosa
stft = self.stft(waveform)
File "/usr/local/lib/python3.6/dist-packages/spleeter/separator.py", line 126, in stft
dl, dr = (data[:, :, 0].T, data[:, :, 1].T) if inverse else (data[:, 0], data[:, 1])
IndexError: index 1 is out of bounds for axis 1 with size 1
Step to reproduce
-
Installed using
pip install spleeter
(spleeter-1.5.0) -
Run as
spleeter separate -i 68481579482858.mp3 -o output/
(On Colab environment) Attach: 68481579482858.zip -
Got this error
Output
Share what your terminal says when you run the script (as well as what you would expect).
Environment
OS | Ubuntu 18.04 |
Installation type | pip |
RAM available | 12GB |
Hardware spec | CPU |
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
IndexError: index 1 is out of bounds for axis 0 with size 1 ...
Let's replace it in its context: x is an array equal to [x0 * n], so its length is 1; you're iterating from...
Read more >Error in python (jupyter): index 1 is out of bounds for axis 0 ...
The error message is quite explanatory. Notice that x=np.linspace(0,100,1). is [0.] Probably you wanted to write: x=np.linspace(0,1,100) .
Read more >IndexError: index 1 is out of bounds for axis 1 with size 1
Hello, I am getting error while detections2tracklet conversion. The video from analze_video seems perfectly fine and detections are good.
Read more >IndexError: index 1 is out of bounds for axis 1 with size 1 #5941
The problem arises at the line 220 in the sklearn wrapper. Here is a minimal example that reproduces the error (I also attached...
Read more >IndexError: index 0 is out of bounds for axis 0 with size 0
The Python "IndexError: index 0 is out of bounds for axis 0 with size 0" occurs when we try to access the first...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @DGideas
The PR has now been merged. Your issue shoud be fixed, but let us know if otherwise.
@mmoussallam @alreadytaikeune I tested this file with the latest master branch code and it works! Thanks you for your PR 😃
This problem should be fixed.