magenta / magenta-js

Magenta.js: Music and Art Generation with Machine Learning in the browser
https://magenta.tensorflow.org
Apache License 2.0
1.96k stars 311 forks source link

Add support for PerformanceRNN #26

Open adarob opened 6 years ago

Ignasinou commented 4 years ago

Hi, sorry for bumping up this post. I was trying to generate some sequences in a browser using magenta.js and a fine-tuned performanceRNN model. I uploaded the model and initialized it successfully, but I am getting an error when trying the continueSequence:

music@^1.15.0:22 Uncaught (in promise) Error: Error in matMul: inner shapes (641) and (900) of Tensors with shapes 1,641 and 900,2048 and transposeA=false and transposeB=false must match.

I suppose that there is no support yet. Is there any workaround?

Regards.

iansimon commented 4 years ago

Unfortunately there is currently no PerformanceRNN data converter for use with MusicRNN. You could try adapting the (totally separate) Performance RNN JS demo codebase to work with your checkpoint: https://github.com/magenta/magenta-demos/tree/master/performance_rnn