README: inputs and outputs first, as in MI-GAN-ExecuTorch
Browse files
README.md
CHANGED
|
@@ -18,6 +18,27 @@ library as ExecuTorch `.pte` programs, ready to run on device.
|
|
| 18 |
|
| 19 |
Upstream model: [Higgs Audio v2 tokenizer](https://huggingface.co/bosonai/higgs-audio-v2-tokenizer)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
## Variants
|
| 22 |
|
| 23 |
| Path | Component | Backend | Precision |
|
|
@@ -53,27 +74,6 @@ first.
|
|
| 53 |
|
| 54 |
## Model details
|
| 55 |
|
| 56 |
-
The Higgs Audio v2 tokenizer turns 24 kHz mono audio into 8 codebooks of 1024
|
| 57 |
-
codes at 25 frames per second (960 samples per frame), and back.
|
| 58 |
-
|
| 59 |
-
### Inputs and outputs
|
| 60 |
-
|
| 61 |
-
Each file has one method, `forward`.
|
| 62 |
-
|
| 63 |
-
**Decoder:** `forward(codes) -> audio`
|
| 64 |
-
|
| 65 |
-
- `codes` int64 `[8, T]`: row i is codebook i of the residual quantizer
|
| 66 |
-
(0 the coarsest), each value in 0-1023. T runs from 4 to 1024 frames
|
| 67 |
-
(0.16 to 41 s).
|
| 68 |
-
- `audio` float32 `[T * 960]`: 24 kHz mono samples, not clipped to [-1, 1].
|
| 69 |
-
|
| 70 |
-
**Encoder:** `forward(wav) -> codes`
|
| 71 |
-
|
| 72 |
-
- `wav` float32 `[frames, 960]`: 24 kHz mono in [-1, 1], cut to whole frames
|
| 73 |
-
of 960 samples and reshaped row by row. frames runs from 25 to 500 (1 to 20 s).
|
| 74 |
-
Resampling to 24 kHz and downmixing to mono happen outside the model.
|
| 75 |
-
- `codes` int64 `[8, frames]`: as the decoder takes them.
|
| 76 |
-
|
| 77 |
### Variants
|
| 78 |
|
| 79 |
- **Decoder:** Core ML on the CPU and GPU, fp16 compute. `fp16` carries the
|
|
|
|
| 18 |
|
| 19 |
Upstream model: [Higgs Audio v2 tokenizer](https://huggingface.co/bosonai/higgs-audio-v2-tokenizer)
|
| 20 |
|
| 21 |
+
## Inputs and outputs
|
| 22 |
+
|
| 23 |
+
The Higgs Audio v2 tokenizer turns 24 kHz mono audio into 8 codebooks of 1024
|
| 24 |
+
codes at 25 frames per second (960 samples per frame), and back.
|
| 25 |
+
|
| 26 |
+
Each file has one method, `forward`.
|
| 27 |
+
|
| 28 |
+
**Decoder:** `forward(codes) -> audio`
|
| 29 |
+
|
| 30 |
+
- `codes` int64 `[8, T]`: row i is codebook i of the residual quantizer
|
| 31 |
+
(0 the coarsest), each value in 0-1023. T runs from 4 to 1024 frames
|
| 32 |
+
(0.16 to 41 s).
|
| 33 |
+
- `audio` float32 `[T * 960]`: 24 kHz mono samples, not clipped to [-1, 1].
|
| 34 |
+
|
| 35 |
+
**Encoder:** `forward(wav) -> codes`
|
| 36 |
+
|
| 37 |
+
- `wav` float32 `[frames, 960]`: 24 kHz mono in [-1, 1], cut to whole frames
|
| 38 |
+
of 960 samples and reshaped row by row. frames runs from 25 to 500 (1 to 20 s).
|
| 39 |
+
Resampling to 24 kHz and downmixing to mono happen outside the model.
|
| 40 |
+
- `codes` int64 `[8, frames]`: as the decoder takes them.
|
| 41 |
+
|
| 42 |
## Variants
|
| 43 |
|
| 44 |
| Path | Component | Backend | Precision |
|
|
|
|
| 74 |
|
| 75 |
## Model details
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
### Variants
|
| 78 |
|
| 79 |
- **Decoder:** Core ML on the CPU and GPU, fp16 compute. `fp16` carries the
|