Audio-to-Audio
MLX
Safetensors
audio
speech-enhancement
noise-suppression
deepfilternet
apple-silicon
Run this model with HF Jobs
Run iky1e/DeepFilterNet3-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/iky1e/DeepFilterNet3-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/iky1e/DeepFilterNet3-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use iky1e/DeepFilterNet3-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use iky1e/DeepFilterNet3-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download iky1e/DeepFilterNet3-MLX --local-dir DeepFilterNet3-MLX
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Kyle Howells commited on
Commit ·
ee295a4
1
Parent(s): 78e496a
Update model card with full description, usage, and attribution
Browse files123---license: mit---1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192---license: mitlibrary_name: mlxtags:- mlx- audio- speech-enhancement- noise-suppression- deepfilternet- apple-siliconbase_model: DeepFilterNet/DeepFilterNet3pipeline_tag: audio-to-audio---# DeepFilterNet3 — MLXMLX-compatible weights for [DeepFilterNet3](https://github.com/Rikorose/DeepFilterNet), a real-time speech enhancement model that suppresses background noise from audio.This is a direct conversion of the original PyTorch weights to `safetensors` format for use with [MLX](https://github.com/ml-explore/mlx) on Apple Silicon.## Origin- **Original model:** [DeepFilterNet3](https://github.com/Rikorose/DeepFilterNet) by Hendrik Schröter- **Paper:** [DeepFilterNet: Perceptually Motivated Real-Time Speech Enhancement](https://arxiv.org/abs/2305.08227)- **License:** MIT (same as the original)- **Conversion:** PyTorch → `safetensors` via the included `convert_deepfilternet.py` scriptNo fine-tuning or quantisation was applied — the weights are numerically identical to the original checkpoint.## Files| File | Description ||---|---|| `config.json` | Model architecture configuration || `model.safetensors` | Pre-converted weights (8.3 MB, float32) || `convert_deepfilternet.py` | Conversion script (PyTorch → MLX safetensors) |## Model Details| Parameter | Value ||---|---|| Sample rate | 48 kHz || FFT size | 960 || Hop size | 480 || ERB bands | 32 || DF bins | 96 || DF order | 5 || Parameters | ~2M |## Usage### Swift (mlx-audio-swift)```swiftimport MLXAudioSTSlet model = try await DeepFilterNetModel.fromPretrained("iky1e/DeepFilterNet3-MLX")let enhanced = try model.enhance(audioArray)```### Python (mlx-audio)```pythonfrom mlx_audio.sts.models.deepfilternet import DeepFilterNetModelmodel = DeepFilterNetModel.from_pretrained(version=3, model_dir="path/to/local/dir")enhanced = model.enhance("noisy.wav")```## Converting from PyTorchTo re-create this conversion from the original DeepFilterNet checkpoint:```bashpython convert_deepfilternet.py \--input /path/to/DeepFilterNet3 \--output ./DeepFilterNet3-MLX \--name DeepFilterNet3```The input directory should contain a `config.ini` and a `checkpoints/` folder from the original repo.## Citation```bibtex@inproceedings{schroeter2023deepfilternet3,title={DeepFilterNet: Perceptually Motivated Real-Time Speech Enhancement},author={Schr{\"o}ter, Hendrik and Rosenkranz, Tobias and Maier, Andreas and Escalante-B., Alberto N.},booktitle={INTERSPEECH},year={2023}}```
README.md+89