Add model card: which package to fetch, licence (MIT, Resemble AI), links
Browse files
README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: coreml
|
| 4 |
+
tags:
|
| 5 |
+
- coreml
|
| 6 |
+
- audio
|
| 7 |
+
- watermarking
|
| 8 |
+
- apple-neural-engine
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Perth-Net Implicit — CoreML
|
| 12 |
+
|
| 13 |
+
CoreML conversion of **Perth-Net Implicit**, the inaudible audio watermarker from
|
| 14 |
+
[Resemble AI's Perth](https://github.com/resemble-ai/Perth), for iOS 18+ / macOS 15+.
|
| 15 |
+
The encoder and decoder convolution stacks run as CoreML packages (on the Apple
|
| 16 |
+
Neural Engine by default); the STFT/ISTFT, magnitude masking and resampling run on
|
| 17 |
+
the host in Accelerate, since CoreML has no complex-number support.
|
| 18 |
+
|
| 19 |
+
These files are loaded by the Swift package
|
| 20 |
+
[iliasaz/perth-coreml](https://github.com/iliasaz/perth-coreml), and used by
|
| 21 |
+
[iliasaz/chatterbox-coreml](https://github.com/iliasaz/chatterbox-coreml) to watermark
|
| 22 |
+
every utterance it generates — as upstream Chatterbox does.
|
| 23 |
+
|
| 24 |
+
## Which file you need
|
| 25 |
+
|
| 26 |
+
| file | precision | size | needed for |
|
| 27 |
+
|---|---|---|---|
|
| 28 |
+
| `PerthEncoder.mlpackage` | fp16 | 4.7 MB | **embedding** a watermark (`applyWatermark`) — the only file chatterbox-coreml downloads |
|
| 29 |
+
| `PerthDecoder.mlpackage` | fp16 | 14.0 MB | **detecting** a watermark (`getWatermark`) |
|
| 30 |
+
| `PerthEncoder_fp32.mlpackage`, `PerthDecoder_fp32.mlpackage` | fp32 | 9.5 MB, 28.0 MB | numeric-parity reference tier — not needed at runtime |
|
| 31 |
+
| `perth_assets.json`, `perth_resampler.json` | — | 46 KB | DSP constants written alongside the conversion; the Swift runtime embeds the same constants and does not read these |
|
| 32 |
+
|
| 33 |
+
If you only embed, fetch only the encoder:
|
| 34 |
+
|
| 35 |
+
```bash
|
| 36 |
+
hf download iliasaz/perth-coreml --include "PerthEncoder.mlpackage/*" --local-dir ./perth
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
Every package declares `Float32` inputs and outputs; the fp16 packages differ only in
|
| 40 |
+
compute precision. Accuracy against stock Python Perth is documented in the
|
| 41 |
+
[perth-coreml README](https://github.com/iliasaz/perth-coreml#accuracy).
|
| 42 |
+
|
| 43 |
+
## Links
|
| 44 |
+
|
| 45 |
+
- **Upstream** — [resemble-ai/Perth](https://github.com/resemble-ai/Perth) by Resemble AI.
|
| 46 |
+
- **Swift runtime** — [iliasaz/perth-coreml](https://github.com/iliasaz/perth-coreml).
|
| 47 |
+
- **Used by** — [iliasaz/chatterbox-coreml](https://github.com/iliasaz/chatterbox-coreml).
|
| 48 |
+
|
| 49 |
+
## License
|
| 50 |
+
|
| 51 |
+
**MIT.** These packages are a CoreML format conversion of the Perth-Net Implicit
|
| 52 |
+
checkpoint that Resemble AI publishes under the MIT licence (`resemble-perth`); the
|
| 53 |
+
conversion inherits those terms, and **copyright in the weights stays with Resemble
|
| 54 |
+
AI** — no claim of ownership is made over them here. Redistribute with attribution to
|
| 55 |
+
Resemble AI.
|