skillfed

basicsr

Open Source Image and Video Super-Resolution Toolbox

basicsr v1.4.2 289.5K downloads/30d#8,000 on PyPI8,367
Permissive license Apache License 2.0 DORMANT released

What it is and what it does

BasicSR is an open-source restoration framework built on PyTorch that provides training and inference pipelines for image and video enhancement. It implements multiple architectures for super-resolution, denoising, deblurring, and JPEG artifact removal. The toolbox is designed for researchers and practitioners working on restoration tasks, offering both high-level APIs for quick inference and lower-level components for custom model development.

The package has no runtime dependencies listed, meaning it expects users to install PyTorch and other heavy dependencies separately. This design choice reduces bloat but increases setup complexity. The project is dormant—last released in August 2022 with minimal recent maintenance—so it functions primarily as a reference implementation and code repository rather than an actively maintained library. Two known security vulnerabilities are present in the codebase.

Use it for:

  • Train and evaluate super-resolution models on custom datasets using provided pipelines.
  • Perform batch inference on images or video frames using pre-trained restoration models.
  • Implement custom restoration architectures by extending BasicSR's base classes.
  • Benchmark different restoration algorithms on standard datasets.
  • Integrate restoration models into production pipelines via the Python API.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

BasicSR is a PyTorch-based toolbox for image and video restoration tasks including super-resolution, denoising, deblurring, and JPEG artifact removal.

Yes, with conditions. BasicSR is worth installing if you need a reference implementation for restoration research or want to train custom models using its provided architectures and pipelines. However, expect high setup friction, no active maintenance, and unresolved security vulnerabilities. For production use, consider sister projects which may offer more stability. Install only if you have PyTorch expertise and can manage dependencies yourself.

Install

basicsr on PyPI

pip

pip install basicsr

uv

uv add basicsr

poetry

poetry add basicsr

Installing basicsr

Before you install

Installation friction is high due to compiled dependencies and complex setup requirements. The project is dormant (last release August 2022, last commit July 2024), so maintenance is minimal; expect no active support for new issues or dependency updates.

License in practice

Released under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions, though you must include a copy of the license and state significant changes.

Quickstart

pip install basicsr

from basicsr.archs.rrdbnet_arch import RRDBNet
from basicsr.upsampler import RealESRGANer

model = RRDBNet(num_in_ch=3, num_out_ch=3)
upsampler = RealESRGANer(scale=4, model_path='model.pth', model=model)

Requires PyTorch and system-level dependencies (CUDA toolkit, C++ compiler); see docs/INSTALL.md for full setup instructions.

Verify before relying

  • Whether pre-trained model weights are bundled or must be downloaded separately.
  • Current compatibility with Python 3.9+ (classifiers list only 3.7 and 3.8).
  • Specific nature and severity of the two known vulnerabilities (GHSA-86w8-vhw6-q9qq, PYSEC-2026-1215).
  • Whether the high install friction is primarily due to PyTorch or additional system dependencies.

Package facts

License Apache License 2.0 (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance dormant — 1,445 days since the last release
Last repo commit
First released
Downloads 289,549/month — #8,000 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities 2 — GHSA-86w8-vhw6-q9qq, PYSEC-2026-1215

Evidence: basicsr-1.4.2.tar.gz

Keywords: computer vision, restoration, super resolution

Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Tags

image super resolutionvideo restoration pytorchimage denoising deblurringJPEG artifact removaldeep learning restoration toolboxcomputer vision restorationneural network image enhancement
image-restorationvideo-enhancementdeep-learning

More Artificial Intelligence packages