Coming soon: Local Upscale Studio is in development. Checkout opens with the first release.

How to run Real-ESRGAN on a Mac (Apple silicon)

Checked on November 9, 2026. Commands tested on an M5 Max running macOS 27. Local Upscale Studio is in development.

Real-ESRGAN is a free, open-source AI upscaler from 2021. It makes photos and video frames four times bigger and cleans up blur and compression on the way. It is the engine behind many free upscalers, and it runs well on Apple silicon. This guide covers four ways to run it, from a Terminal command to an app with no setup, and which model to choose for which job.

The quick answer

1. The official ready-made program (ncnn)

The Real-ESRGAN project publishes a portable command-line program for macOS. It runs on the GPU through Vulkan, so it needs no Python, PyTorch or CUDA. The latest macOS build is from April 2022, but it is a universal app with native Apple silicon code, and it ran without problems on our test Mac.

  1. Open the project's v0.2.5.0 release page and download realesrgan-ncnn-vulkan-20220424-macos.zip (about 50 MB). It contains the program and its models.
  2. Open the zip, then open Terminal and go to the folder. Type cd with a space, drag the folder into the Terminal window, and press Return.
  3. Make the program runnable:

    chmod u+x realesrgan-ncnn-vulkan

  4. Upscale a photo 4×. Put the photo in the same folder first:

    ./realesrgan-ncnn-vulkan -i photo.jpg -o photo-4x.png -n realesrgan-x4plus

If macOS blocks it. The program isn't notarised by Apple, so when it comes from a web browser, macOS stops it from opening. In our test, a downloaded copy waited for a security prompt and never ran. Removing the download flag from that one file fixed it:

xattr -d com.apple.quarantine realesrgan-ncnn-vulkan

Only do this for a file you downloaded from the official release page. The included readme also suggests turning Gatekeeper off for the whole Mac; we don't recommend that.

Useful options

The readme warns that the program cuts large images into tiles and stitches them back together, which can leave faint seams and gives slightly different results from the Python version.

2. Python and PyTorch, on the Mac's GPU

If you already use Python, the realesrgan package runs all the models in the project's list, including realesr-general-x4v3, which the ncnn build for Mac doesn't include. We tested it in a fresh Python 3.12 environment:

python3 -m venv ~/realesrgan-env

~/realesrgan-env/bin/pip install torch torchvision realesrgan

Two things need fixing, and this is why we only recommend this route to people who write Python:

With those two changes, RealESRGAN_x4plus.pth from the release page ran on the M5 Max's GPU and gave essentially the same result as the ncnn program. Keep the environment in its own folder so you can delete it in one go; ours took about 1.2 GB.

3. Upscayl: an app built on Real-ESRGAN

Upscayl is a free, open-source app for upscaling photos. Its backend is a fork of the official ncnn program, and its readme says it uses Real-ESRGAN. It comes with several 4× models, including community models such as Remacri and UltraSharp. It needs macOS 12 or later. Download it free from GitHub, or pay $12.99 for the Mac App Store version. If you want Real-ESRGAN without Terminal, start here. It handles images only, not video.

4. Local Upscale Studio's Fast mode

Studio is a pay-once Mac app for photos and video, in development. Its Fast mode is Real-ESRGAN, using the same Core ML conversions that already run in the developer's App Store apps, Local Photo Upscaler and Local Video Upscaler. Core ML is Apple's own framework for running models, so there is no Terminal, Python or Vulkan to set up. It takes whole videos, with no frame folders to manage, and on our M5 Max development Mac it upscales video at tens of frames per second. A typical 16 GB Mac will be slower; we haven't measured one yet.

Studio also has a Quality mode built on newer models, for the jobs where Real-ESRGAN falls short (see below). It is $49 once at launch, rising to $79 at version 1.0. Nothing is uploaded and there is no account.

Which model for what

From the project's own model list:

ModelUse it forWhere you get it
RealESRGAN_x4plus (realesrgan-x4plus)General photos. The default choice.ncnn build, Python
RealESRGAN_x4plus_anime_6B (realesrgan-x4plus-anime)Anime and illustrations. A smaller network.ncnn build, Python
realesr-general-x4v3General scenes when speed or memory matters. A tiny model with lighter deblurring and denoising, and a denoise-strength setting.Python
realesr-animevideov3Anime video. Very small and fast; 2×, 3× or 4×.ncnn build, Python

The project also lists a 2× model (RealESRGAN_x2plus) and a smoother RealESRNet_x4plus for Python.

Its limits

Crop of a 1942 family portrait enlarged 2× without AI: soft faces and film grain
Source, enlarged normally
The same crop upscaled with Real-ESRGAN: sharper edges, smoothed skin
Real-ESRGAN x4plus
The same crop upscaled with SeedVR2 3B: defined faces, glasses and uniform stripes
SeedVR2 3B

More comparisons, with speed and memory measured on our development Mac, are on the SeedVR2 and FlashVSR results page.

Licence

Real-ESRGAN's code is BSD-3-Clause, copyright 2021 Xintao Wang, which allows commercial use as long as the notice is kept. The ncnn program's own repository is MIT. The model weights are files on the project's release page with no separate licence of their own. The project's training notes say the models were trained on the DIV2K, Flickr2K and OST datasets; the DIV2K site says that dataset "is made available for academic research purpose only". Upscayl is AGPL-3.0. If you plan to build Real-ESRGAN into a product, read these yourself.

Questions

Does it work on an Intel Mac? The ncnn build includes Intel code too. This guide was tested on Apple silicon only.

Does it need the internet? No. We ran the ncnn program with network access blocked and it worked normally. See private, offline upscaling on a Mac.

Is Real-ESRGAN the best upscaler? It is fast, free and good on clean sources, but newer models do better on faces and badly degraded footage. See AI upscalers for Mac compared.

Guides: how to upscale photos on a Mac, upscaling video to 4K and old home videos.

Get the launch price. Studio is $49 until version 1.0. See what's planned.

Sources and credits

Mac, macOS, Core ML and Preview are trademarks of Apple Inc. Real-ESRGAN is the work of Xintao Wang and contributors, who do not endorse Local Upscale Studio. Upscayl and all other names are trademarks of their owners. Local Upscale Studio is not affiliated with any of them.