Run this model with HF Jobs

Run exalandru/RealESR-general-x4v3-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/RealESR-general-x4v3-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/RealESR-general-x4v3-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 general x4v3 β€” Quantum MLX

Real-ESRGAN is a practical blind super-resolution model by Xintao Wang et al. realesr-general-x4v3.pth is its 4Γ— model for general images and video frames (Hone). This repository holds a float16, MLX-layout copy of that checkpoint for Apple silicon, used by Quantum Video Upscaler (Hone stage, blended with the denoise twin realesr-general-wdn-x4v3). This is not an official release of the Real-ESRGAN authors. Converted from the official GitHub release asset realesr-general-x4v3.pth (tag v0.2.5.0).

Architecture: SRVGGNetCompact (32 convolutions, 64 features, PReLU), 1.2 M parameters.

What's in the repo

.
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE            BSD 3-Clause (Real-ESRGAN)
β”œβ”€β”€ NOTICE
└── native/
    β”œβ”€β”€ quantum-model.json
    └── model/model.safetensors    2.4 MB, float16, MLX layout (101 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 2,434,656 B d1ce1d2f490d4c37c061a06336e47cfd487696618a5420506e45f1daa9f0198d

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: realesr-general-x4v3.pth from xinntao/Real-ESRGAN release v0.2.5.0 (tag commit 685d429c81888252bdb10f56c7754baededc3823); 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.2.5.0/realesr-general-x4v3.pth
  • Upstream size / SHA-256 (of the downloaded bytes): 4,885,111 B / 8dc7edb9ac80ccdc30c3a5dca6616509367f05fbc184ad95b731f05bece96292
  • 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 realesr-general-x4v3.pth (PyTorch state dict, float32; key params) 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. 101 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/RealESR-general-x4v3-MLX