Instructions to use litert-community/Basic-Pitch-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/Basic-Pitch-LiteRT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Card: add a measured Performance table (Pixel 8a, benchmark_model GPU+CPU), naming the runtime for each row
Browse files
README.md
CHANGED
|
@@ -67,3 +67,15 @@ CQT kernels).
|
|
| 67 |
[spotify/basic-pitch](https://github.com/spotify/basic-pitch) (Apache-2.0). Please cite
|
| 68 |
Bittner et al., *A Lightweight Instrument-Agnostic Model for Polyphonic Note Transcription and
|
| 69 |
Multipitch Estimation* (ICASSP 2022).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
[spotify/basic-pitch](https://github.com/spotify/basic-pitch) (Apache-2.0). Please cite
|
| 68 |
Bittner et al., *A Lightweight Instrument-Agnostic Model for Polyphonic Note Transcription and
|
| 69 |
Multipitch Estimation* (ICASSP 2022).
|
| 70 |
+
|
| 71 |
+
## Performance
|
| 72 |
+
|
| 73 |
+
Measured on a **Pixel 8a** (Tensor G3, Android 16) with the standard TFLite [`benchmark_model`](https://ai.google.dev/edge/litert/models/measurement) tool — 10 warm-up runs then 50 timed runs, reported as the tool's mean.
|
| 74 |
+
|
| 75 |
+
| Runtime | Backend | Graph on GPU | Latency |
|
| 76 |
+
|---|---|---|---|
|
| 77 |
+
| LiteRT `CompiledModel` (`LITERT_CL`) | GPU | 241 / 241 | ~4.4 ms |
|
| 78 |
+
| TFLite `benchmark_model` (`TfLiteGpuDelegateV2`) | GPU (OpenCL) | 241 / 241 | did not run |
|
| 79 |
+
|
| 80 |
+
**The two GPU rows are different runtimes, not a contradiction.** The `LITERT_CL` figure is the one recorded when this model shipped, taken through LiteRT's own `CompiledModel` accelerator — the path the Kotlin sample app and the LiteRT API use. The `TfLiteGpuDelegateV2` figure is the classic TFLite OpenCL delegate, measured with a tool anyone can download and re-run. They agree on how much of the graph the GPU takes; they disagree on speed, and the classic delegate is the slower of the two here. Read the `TfLiteGpuDelegateV2` row as a reproducible floor, not as this model's speed on LiteRT.
|
| 81 |
+
|