Run this model with HF Jobs
Run mlx-community/NAFNet-GoPro-width64 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/mlx-community/NAFNet-GoPro-width64. 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/mlx-community/NAFNet-GoPro-width64 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 mlx-community/NAFNet-GoPro-width64 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/NAFNet-GoPro-width64 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/NAFNet-GoPro-width64 --local-dir NAFNet-GoPro-width64
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Add NAFNet MLX weights (faithful port of megvii-research/NAFNet)
Browse filesFiles changed (4)
- NOTICEAdded+13
- README.mdAdded+30
- config.jsonAdded+24
- model.safetensorsAdded+3
12345678910111213nafnet-mlxApple MLX port of NAFNet (Simple Baselines for Image Restoration).
This work is licensed under the MIT License.
Derived from:- megvii-research/NAFNet (MIT) — official PyTorch implementation and pretrained weights. Chen et al., "Simple Baselines for Image Restoration", ECCV 2022 (arXiv:2204.04676). TLC (test-time local converter) from Chu et al., arXiv:2112.04491.- Built on the BasicSR framework conventions (Apache-2.0).
Pretrained weights (REDS / SIDD / GoPro width64) are the official megvii-research releases,converted to MLX safetensors. Original weights are MIT-licensed.123456789101112131415161718192021222324252627282930---license: mitlibrary_name: mlxpipeline_tag: image-to-imagetags: [mlx, image-restoration, deblurring, denoising, nafnet]base_model: megvii-research/NAFNet---
# NAFNet width64 (MLX) — Image deblurring
Apple MLX port of **[NAFNet](https://github.com/megvii-research/NAFNet)** (Simple Baselines forImage Restoration, ECCV 2022). Runs on Apple Silicon via [MLX](https://github.com/ml-explore/mlx).
This checkpoint: **GoPro** (Image deblurring). width64.
## Usage```pythonfrom nafnet_mlx import NAFNetConfigfrom nafnet_mlx.pipeline import load_model, restore_to_filem = load_model("model.safetensors", NAFNetConfig.gopro_width64())restore_to_file(m, "input.png", "output.png")```
## ValidationFaithful NHWC port (SimpleGate, Simplified Channel Attention, channel-axis LayerNorm2d,UNet + PixelShuffle). PT-vs-MLX full-model parity on a real image ~1e-6.Uses NAFNetLocal (TLC) local pooling.
## License & attributionMIT. Derived from megvii-research/NAFNet (MIT). See `NOTICE`.123456789101112131415161718192021222324{ "img_channel": 3, "width": 64, "middle_blk_num": 1, "enc_blk_nums": [ 1, 1, 1, 28 ], "dec_blk_nums": [ 1, 1, 1, 1 ], "local": true, "train_size": [ 1, 3, 256, 256 ]}123version https://git-lfs.github.com/spec/v1oid sha256:53d808d8f74bac6817055b01361bf2a13f73506391a84940bac7238aa400387esize 271619083NOTICEAdded+13
README.mdAdded+30
config.jsonAdded+24
model.safetensorsAdded+3