Closed jeffkile closed 4 years ago
@JCBrouwer PTAL
Hey @jeffkile, you're running into the same issue as #86. This error message is related to numpy deprecating the use of floats as steps in linspace in 1.18. Also, most likely you'll run into the same issues with nsynth_generate never ending as well.
I've pushed a version of generate.py I was using to test here: https://github.com/JCBrouwer/magenta-demos/blob/master/nsynth/generate.py
It casts the float argument that numpy is complaining about to an int. Plus, instead of running nsynth_generate automatically for you, it prints out the command for you to run in another terminal. For some reason nsynth_generate isn't stopping once it's generated sample_length samples, so you'll need to just kill the process once you see it has generated enough samples. Then you can go back to the original terminal and continue the pipeline.
I haven't had the time to figure out what exactly is going wrong yet because I'm in the middle of writing my bachelor's thesis at the moment. Hopefully this version of generate.py can hold you over til I can track down the bug.
Regarding your other issue, #87, can you check that all your files are exactly the same length (e.g. with soxi file.wav
)?
@JCBrouwer would you mind making a PR with the float fix?
Hi when using numpy 1.18.4 I'm getting the following error when trying to run the generate.py script for Nsynth
This is my settings.json
I'm using: python 3.7.6 numpy 1.18.4 tensorflow 1.15.3 magenta 1.3.1