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.

[Bug] IndexError: index 1 is out of bounds for axis 1 with size 1

See original GitHub issue

Description

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

  1. Installed using pip install spleeter(spleeter-1.5.0)

  2. Run as spleeter separate -i 68481579482858.mp3 -o output/ (On Colab environment) Attach: 68481579482858.zip

  3. 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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mmoussallamcommented, Apr 5, 2020

Hi @DGideas

The PR has now been merged. Your issue shoud be fixed, but let us know if otherwise.

0reactions
DGideascommented, Apr 13, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

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