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.

Input file data shape of .npy file in compact_cnn

See original GitHub issue

Is the test file , 1100103.clip.npy , generated by the same way of other .npy files through audio_processor.py ?

When I use bensound-thejazzpiano.npy instead of 1100103.clip.npy main.py throw out a data shape mismatch msg: ValueError: Error when checking : expected melspectrogram_input_1 to have 3 dimensions, but got array with shape (1, 1, 1, 1, 96, 1366)

How to modify the audio_processor.py to fix this error?

Thank you again.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
keunwoochoicommented, Mar 15, 2017

No.

I just added a notebook.

0reactions
keunwoochoicommented, May 25, 2017

Great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using .npy files as input/data for CNN network
I am trying to feed my network greyscale npy arrays with the dimensions 160 x 160. I am having trouble altering the dimensions...
Read more >
numpy.load — NumPy v1.24 Manual
Load arrays or pickled objects from .npy , .npz or pickled files. ... Loading files that contain object arrays uses the pickle module,...
Read more >
Why you should start using .npy file more often…
It works for as simple a task as reading data from file. ... The format stores all of the shape and data type...
Read more >
I/O with NumPy
This .npy file stores data, shape, dtype and other information required ... The numpy.save() file stores the input array in a disk file...
Read more >
numpy.load() in Python
load() function return the input array from a disk file with npy extension(.npy). Syntax : numpy.load(file, mmap_mode=None, allow_pickle=True, ...
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