Run this model with HF Jobs

Run exalandru/RealESRGAN-x4plus-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/exalandru/RealESRGAN-x4plus-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/exalandru/RealESRGAN-x4plus-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.

Real-ESRGAN x4plus β€” Quantum MLX

Real-ESRGAN is a practical blind super-resolution model by Xintao Wang et al. RealESRGAN_x4plus.pth is its 4Γ— model for photographs and general images. This repository holds a float16, MLX-layout copy of that checkpoint for Apple silicon, used by Quantum Image Studio (Photo upscaler). This is not an official release of the Real-ESRGAN authors. Converted from the official GitHub release asset RealESRGAN_x4plus.pth (tag v0.1.0).

Architecture: RRDBNet (23 residual-in-residual dense blocks, 64 features, 32 growth channels), 16.7 M parameters.

What's in the repo

.
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE            BSD 3-Clause (Real-ESRGAN)
β”œβ”€β”€ NOTICE
└── native/
    β”œβ”€β”€ quantum-model.json
    └── model/model.safetensors    33.5 MB, float16, MLX layout (702 tensors)

native/quantum-model.json is the Quantum Suite manifest: every file with its size and SHA-256, the source pin of this repository and the provenance. This model has a single variant (native): the weights are not quantized.

File Size SHA-256
native/model/model.safetensors 33,461,662 B 30b22186ea8cd33dad8a4648e21f495037be168067bbf1b69b6267428b701636

Recommended unified memory: 4 GB (measured peak β‰ˆ 1.4 GB for a 1024Γ—1024 output).

Usage

Installed and loaded by the Quantum Suite apps through the shared model store. Convolution weights are in MLX layout ([out, kH, kW, in]); for PyTorch use the original weights from the Real-ESRGAN releases.

Provenance

  • Upstream asset: RealESRGAN_x4plus.pth from xinntao/Real-ESRGAN release v0.1.0 (tag commit 4c05b20cb30aded73ed3731848a9fbbf70c7c0ac); the weights are not hosted on the Hugging Face Hub by the authors, so this card does not set base_model.
  • Upstream URL: https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth
  • Upstream size / SHA-256 (of the downloaded bytes): 67,040,989 B / 4fa0d38905f75ac06eb49a7951b426670021be3018265fd191d2125df9d682f1
  • License: BSD 3-Clause License, Copyright (c) 2021 Xintao Wang (text from the upstream repository; the x4plus tag v0.1.0 predates the LICENSE file, the identical text at tags v0.2.2.4 / v0.2.5.0 is used).

Changes made

  • Converted the official RealESRGAN_x4plus.pth (PyTorch state dict, float32; key params_ema) to safetensors (models/realesrgan/convert.py of the QuantumPublish tooling): tensors sorted by name, names unchanged, every tensor cast from float32 to float16, 4-D convolution weights transposed from PyTorch [out, in, kH, kW] to MLX [out, kH, kW, in] (values unchanged). No retraining, fine-tuning or merging.

The conversion is deterministic. 702 tensors. All tensors are equal (after the same cast and transpose) to the file the Quantum app already used.

Validation

One 256Γ—256 photo crop was upscaled Γ—4 through the Quantum app engine that loads this model, using exactly these files (1024Γ—1024 output, finite, not equal to a bicubic resize). No quality evaluation is published here.

Citation

@InProceedings{wang2021realesrgan,
  author    = {Xintao Wang and Liangbin Xie and Chao Dong and Ying Shan},
  title     = {Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data},
  booktitle = {International Conference on Computer Vision Workshops (ICCVW)},
  date      = {2021}
}

License

BSD 3-Clause License (see LICENSE), the license of the original weights. See NOTICE.

Downloads last month

-

Downloads are not tracked for this model. How to track
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including exalandru/RealESRGAN-x4plus-MLX