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.

Converting python onset and frames MAESTRO checkpoint to tfjs leads to incompatible model

See original GitHub issue

Thanks for sharing all these resources with the community!

I tried converting the OAF MAESTRO checkpoint using checkpoint_converter.py:

python checkpoint_converter.py train/model.ckpt maestrocp

Once I use my manually converted checkpoint in piano-scribe, I get the error

Uncaught (in promise) Error: Variable not found: onsets/cudnn_lstm/rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
    at getVar (music@1.2:81458)
    at setLstmWeights (music@1.2:81469)
    at Lstm.setWeights (music@1.2:81471)
    at music@1.2:81326
    at music@1.2:8586
    at Engine.scopedRun (music@1.2:8596)
    at Engine.tidy (music@1.2:8585)
    at Object.Environment.tidy (music@1.2:8928)
    at OnsetsAndFrames.build (music@1.2:81322)
    at OnsetsAndFrames.<anonymous> (music@1.2:81199)

The python checkpoint uses bidirectional LSTM layers, whereas the provided tfjs checkpoints (onsets_frames_uni, onsets_frames_uni_q2) use unidirectional models.

Is there an easy fix for this? Would it be possible to share the python checkpoints that were used to generate onsets_frames_uni and onsets_frames_uni_q2?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Converting python onset and frames MAESTRO checkpoint to ...
I tried converting the OAF MAESTRO checkpoint using ... Converting python onset and frames MAESTRO checkpoint to tfjs leads to incompatible ...
Read more >
Fine-tuning Onsets and Frames model - Google Groups
I'm an undergraduate working on fine-tuning the Onsets and Frames model ... the MAESTRO dataset, at least one order of magnitude smaller) and...
Read more >
Untitled - PDFCOFFEE.COM
Notice that the Python version is 3.6, as we mentioned at the beginning of this ... A bundle file is a file containing...
Read more >
Full text of "The Times , 1983, UK, English" - Internet Archive
Leading article,-page 15 Airline to fight hive-off By Michael Bally Transport Editor ... Facto Maestro, the Mini, Metro, Ambassador and Acclaim models.
Read more >
jimsghstars - jimbrig.github.io - DevFolio
fanfeilong/exceltk - Convert Excel sheet to markdown, json, tex, html, image and so on.. aws/aws-lambda-dotnet - Libraries, samples and tools to help .NET ......
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