OnsetsAndFrames
constructor.
Path to the checkpoint directory.
The length of chunks (excluding receptive field padding). Sequences longer than this amount will be split into batches of this size for processing.
Disposes of any untracked Tensors
to avoid GPU memory leaks.
Loads variables from the checkpoint and builds the model graph.
Returns true iff model is intialized.
Transcribes a piano performance from audio buffer.
An audio buffer to transcribe.
The number of chunks to compute in parallel. May need to be reduced if hitting a timeout in the browser.
A NoteSequence
containing the transcribed piano performance.
Transcribes a piano performance from an audio file.
An audio file blob to transcribe.
A NoteSequence
containing the transcribed piano performance.
Transcribes a piano performance from an audio file ULR.
The url of the file to transcribe.
A NoteSequence
containing the transcribed piano performance.
Transcribes a piano performance from a mel spectrogram.
A mel spectrogram
shaped [frame, bin]
.
The number of convolutional batches to compute in parallel. May need to be reduced if hitting a timeout in the browser.
A NoteSequence
containing the transcribed piano performance.
Generated using TypeDoc
Main "Onsets And Frames" piano transcription model class.