// image · xinntao/Real-ESRGAN

Real-ESRGAN

Real-ESRGAN — проект с открытым исходным кодом из категории «Изображения» от xinntao (xinntao/Real-ESRGAN на GitHub). У него 37 147 звёзд на GitHub и 4 495 форков, он распространяется по лицензии BSD-3-Clause и последний раз обновлялся на GitHub 6 августа 2024.

Real-ESRGAN — practical blind super-resolution for real-world photos and video: restores and upscales degraded images with models trained on pure synthetic data, BSD-3-Clause

★ 37,1 тыс. звёзд⑂ 4,5 тыс. форковBSD-3-Clauseобновлено авг. 2024
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
xinntao/Real-ESRGAN
Звёзды GitHub
37 147
Форки
4 495
Лицензия
BSD-3-Clause
Последнее обновление на GitHub
6 августа 2024
Категория
Изображения
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Install it

    Clone the repo and install the requirements, or install the realesrgan package from PyPI (with basicsr, facexlib and gfpgan) per the README dependencies section.

  2. Download a model

    Fetch the pretrained weights for your job — RealESRGAN_x4plus for general photos, the anime_6B model for illustrations, or the general-x4v3 model when you want denoising control with -dn.

  3. Run inference

    Run inference_realesrgan.py with your input folder and chosen model; use --outscale for an arbitrary final scale and --face_enhance to chain GFPGAN face restoration.

// возможности

Почему его любят

Blind real-world restoration

Trained on synthetic degradations that mimic real damage, so it restores photos — not just clean downscales — convincingly.

A model for each job

General x4plus, a compact anime model, anime-video models and the denoise-tunable realesr-general-x4v3, all in the model zoo.

Face enhancement built in

Integrates GFPGAN so portraits get face-aware restoration in the same pass with --face_enhance.

No-install portable builds

Official ncnn-vulkan executables for Windows, Linux and macOS run upscaling without any Python environment.

Advertisement
// запустите сами

Запустите сами

  1. Install from PyPI

    The package route from the README ecosystem.

    pip install basicsr facexlib gfpgan
    pip install realesrgan
  2. Clone and run inference

    The repo route: install requirements, then run the inference script on a folder of images.

    git clone https://github.com/xinntao/Real-ESRGAN.git
    cd Real-ESRGAN
    pip install -r requirements.txt
    python inference_realesrgan.py -n RealESRGAN_x4plus -i inputs -o results
  3. Portable executable

    Download realesrgan-ncnn-vulkan for your OS from the v0.2.5.0 release and run it directly — no Python needed.

    https://github.com/xinntao/Real-ESRGAN/releases
// сценарии использования

Что можно создать

Restoration is one branch of the wider image-to-image translation family — the branch that starts with the classic CycleGAN and pix2pix implementations, which taught models to turn sketches into photos and day scenes into night ones.

Advertisement
// вопросы и ответы

Вопросы и ответы

Who makes Real-ESRGAN?

Xintao Wang and co-authors at Tencent ARC Lab and the Shenzhen Institutes of Advanced Technology (xinntao/Real-ESRGAN on GitHub); the paper is arXiv 2107.10833.

Is Real-ESRGAN free?

Yes — BSD-3-Clause licensed, including for commercial use, subject to the licence terms. Check the licences of any model weights you add.

Is it still maintained?

Honestly: it is a mature, stable codebase — its last push was 2024-08-06 — rather than an actively evolving one. It remains the reference implementation and is embedded in many other tools.

How does it compare to a well-known alternative?

Against GFPGAN from the same lab family, Real-ESRGAN is the general image/video restorer and GFPGAN is the face specialist — they are designed to chain together. Against newer diffusion upscalers, Real-ESRGAN is far faster and more predictable, with less invented detail.

How do I get started?

pip install realesrgan (plus basicsr, facexlib, gfpgan), download the x4plus weights, and run inference_realesrgan.py on a test folder — or grab the portable ncnn build if you want zero setup.

// продолжить изучение

Похожие инструменты

Изображения

nextgenUp

Free local upscaler — 8K photos and 4K video with Real-ESRGAN, no cloud

★ 65 звёздMIT
Смотреть руководство →
Изображения

RealScaler

Real-ESRGAN image and video upscaler app with GPU acceleration

★ 428 звёздMIT
Смотреть руководство →
Изображения

ImageUpscaler

Simple Flask web app that upscales low-res images with AI

★ 129 звёздMIT
Смотреть руководство →
Изображения

PhotoCraft

PhotoCraft — a clean-room Photoshop reimplementation in pure Rust: layers, masks, adjustment layers, type, vectors, brushes and real PSD files, offline, MIT / Apache-2.0

★ 73,2 тыс. звёздMIT / Apache-2.0
Смотреть руководство →
Изображения

SAM 2

SAM 2 — Meta's Segment Anything Model 2: promptable segmentation for images and video, Apache-2.0

★ 20,1 тыс. звёздApache-2.0
Смотреть руководство →
Изображения

Janus

DeepSeek's Janus series - unified multimodal models that both understand and generate images

★ 17,8 тыс. звёздMIT
Смотреть руководство →
// альтернативы

Альтернативы: Изображения

Другие проекты из категории «Изображения» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если Real-ESRGAN вам не подходит.

// ещё в категории image

Больше проектов: Изображения

Соседние проекты из категории «Изображения» в каталоге, ближайшие по числу звёзд к Real-ESRGAN — продолжайте изучать полку по обе стороны от него.

Получить Real-ESRGAN

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.