Instructions to use nanguoyu/realesrgan-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nanguoyu/realesrgan-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir realesrgan-mlx nanguoyu/realesrgan-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
Real-ESRGAN MLX (Swift)
PyTorch โ MLX Swift converted weights for Real-ESRGAN.
Use with mlx-realesrgan-swift.
Files
| File | Variant | Architecture | Size |
|---|---|---|---|
realesr-general-x4v3.safetensors |
SRVGGNetCompact ร4 (general) | 34 conv + 33 PReLU + PixelShuffle | 4.9 MB |
realesr-animevideov3.safetensors |
SRVGGNetCompact ร4 (anime video) | 18 conv + 17 PReLU + PixelShuffle | 2.5 MB |
RealESRGAN_x4plus.safetensors |
RRDBNet ร4 (flagship) | 351 conv across 23 RRDB blocks | 66.9 MB |
RealESRGAN_x4plus_anime_6B.safetensors |
RRDBNet ร4 (anime stills) | 96 conv across 6 RRDB blocks | 17.9 MB |
Conversion details
- Conv2d weights permuted OIHW โ OHWI (MLX NHWC convention)
- All tensors float32
License
This conversion (this README, the .safetensors packaging, and any added metadata) is released under the MIT License โ see the LICENSE in the companion GitHub repo.
The underlying neural network weights are derived from the official Real-ESRGAN PyTorch releases by Xintao Wang and the BasicSR / XPixelGroup contributors, originally distributed under the BSD 3-Clause License. That license and the original copyright notice continue to apply to the substantive weight content.
Upstream: https://github.com/xinntao/Real-ESRGAN Upstream license: https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE
Acknowledgements
- xinntao/Real-ESRGAN โ original PyTorch implementation and trained weights
- XPixelGroup/BasicSR โ architecture definitions
Hardware compatibility
Log In to add your hardware
Quantized