Search code examples
javascripttensorflowmagenta

How to import local model into Magenta MusicRNN?


I have trained my model locally using the python libraries and got the 3 files:

  • ckpt.index
  • ckpt.meta
  • ckpt.data

After that, I have followed the steps on this page, under "Dumping Your Weights" and now I also have:

I have also this config.json file

But when I try to import it using the js library it crashes.

error log

enter image description here

values right before it crashes

enter image description here


Solution

  • The issue apparently originated from the config file. As soon as I replaced the file with the one used in the default model (config.json), it worked.