8000
Skip to content

Tags: dexxdean/htdemucs-coreml

Tags

v1.0.0

Toggle v1.0.0's commit message
Initial release: HTDemucs to Core ML converter

Convert Meta's Hybrid Transformer Demucs (HTDemucs) to a Core ML
mlpackage with a real-valued STFT/ISTFT wrapper, manual MultiheadAttention
decomposition, and pre-computed overlap-add indices.

- convert.py: 600+ LoC standalone converter with FP16/FP32 and segment-length flags
- CONVERSION_NOTES.md: technical deep-dive on the three coremltools workarounds
- examples/swift/StemSeparator.swift: full Swift reference with chunking + OLA
- README, LICENSE (MIT), ATTRIBUTION (Demucs MIT, Meta)

Validated end-to-end: max numerical drift 3e-4 (FP32), 6e-3 (FP16) vs
PyTorch reference. Pre-built mlpackages attached to releases.
0