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.

"Found 0 total samples" error

See original GitHub issue

Zero samples found so it throws this error:

raise errors.InvalidArgumentError(
tensorflow.python.framework.errors_impl.InvalidArgumentError: Expected 'tf.Tensor(False, shape=(), dtype=bool)' to be true. Summarized data: b'No files matched pattern: /content/MUSIKA/output/*.npy'

I seem to encounter an issue with Google Drive files when using some Colabs. I’ve seen variations like /content/[myfolder] /content/drive/[myfolder] /content/My Drive/[myfolder]

Maybe it’s different for users who aren’t on the free 15Gb Drive plan? (I’m paying for 2Tb) Don’t know if that’s the issue.

Am i missing something? I figured this could just run on a folder of mp3s.

**Addendum: tried converting all files to 44.1 as I noticed that was the format of the demos. No change. Can the Colab not read mp3 files?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
marcoppasinicommented, Oct 29, 2022

It seems like you are specifying an empty path for your mp3 files! You can check the position of your folder by navigating to it in the “File” tab in colab (the little folder icon on the left).

0reactions
cbmtrxcommented, Nov 18, 2022

Ah…I converted the mono WAV into stereo…problem solved. Must have missed the memo on mono files! Tx

Read more comments on GitHub >

github_iconTop Results From Across the Web

'ValueError: Found array with 0 sample(s) (shape=(0, 1)) while ...
I managed to solve the issue by doing the following before deploying the train/test method: #features should be converted into a numpy array...
Read more >
How To Calculate Sampling Error in 6 Steps (With Examples)
How to calculate sampling error · 1. Record the sample size · 2. Find the standard deviation of the population · 3. Determine...
Read more >
sample.size less than or equal to zero. Need positive ... - GitHub
Hello. How to deal with error when I am having the minimum (of sample_sums of the phyloseq object) equals to zero.
Read more >
Sampling Errors in Statistics: Definition, Types, and Calculation
A sampling error is a statistical error that occurs when an analyst does not select a sample that represents the entire population of...
Read more >
5. Differences between means: type I and type II errors and ...
We saw in Chapter 3 that the mean of a sample has a standard error, and a mean that departs by more than...
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