Instructions to use melmass/audiosr-basic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use melmass/audiosr-basic with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download melmass/audiosr-basic --local-dir audiosr-basic
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
|
Download README.md from melmass/audiosr-basic: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/melmass/audiosr-basic/resolve/main/README.md
- Command line
-
hf download hf://melmass/audiosr-basic/README.md
-
curl -L -o README.md https://huggingface.co/melmass/audiosr-basic/resolve/main/README.md
1.24 kB
| license: mit | |
| library_name: mlx | |
| tags: | |
| - audio | |
| - audio-super-resolution | |
| - mlx | |
| base_model: haoheliu/audiosr_basic | |
| # AudioSR basic, trimmed | |
| The released [AudioSR](https://github.com/haoheliu/versatile_audio_super_resolution) | |
| `basic` checkpoint, cut down to what super-resolution runs and saved as | |
| safetensors. It is used by IntelligenceKit's `MLXAudioSR` (Swift, MLX) and | |
| by `afm upscale`. | |
| `basic.safetensors`, 2.69 GB, float32, with PyTorch names and layouts. It holds: | |
| - `model.`: the diffusion UNet | |
| - `first_stage_model.`: the VAE and its 48 kHz HiFi-GAN vocoder | |
| - the scale factor and the noise schedule's buffers | |
| These are left out: | |
| - CLAP, which super-resolution doesn't use; | |
| - the EMA copy of the UNet, since inference uses the live weights; | |
| - the condition encoder's VAE, which is identical to `first_stage_model`. | |
| The MLX port casts to float16 at load time. | |
| `convert.py`, the script that made the file: | |
| ```sh | |
| python convert.py basic basic.safetensors | |
| ``` | |
| ## Parity | |
| The MLX port matches PyTorch stage by stage, from 76 to 137 dB SNR. It was | |
| tested on a clip low-passed at 6 kHz and scored by LSD against the original | |
| (lower is better): | |
| | | LSD | | |
| |---|---| | |
| | input | 3.88 | | |
| | PyTorch | 1.16 | | |
| | MLX | 1.14 | | |