Skip to main content

Super‑resolution research framework for PyTorch with a focus on simplicity and flexibility using config files.

Project description

SR FORGE

Super-Resolution Framework for Oriented Restoration and Guided Enhancement


SR FORGE (Super-Resolution Framework for Oriented Restoration & Guided Enhancement) is a unified, modular, and task-driven framework for training and evaluating deep learning models in the field of super-resolution.

Key Features

  • Structured Workflow
    SR FORGE provides an organized approach to super resolution. Every step—from data loading to final evaluation—follows a clear, modular structure.

  • Task-driven restoration
    Built-in utilities to help fine-tune models for specific tasks or objectives (e.g., OCR, remote sensing, medical imaging, etc.).

  • Config-Driven Experiments
    Simple YAML/JSON configuration files let you customize your pipeline without modifying code directly.

  • Flexible Model Plug-In
    Includes SISR baselines (FSRCNN, DSen2) and MISR models (RAMS, TR-MISR, MagNAt), plus a registry for custom architectures.

  • Unified Metrics
    Evaluate your models with a suite of standard metrics (PSNR, SSIM, LPIPS) and straightforward logging.

  • Visualization Tools
    Quickly visualize results (side-by-side comparisons, zoom-ins, or overlays) for interpretability and debugging.

Installation

  1. Clone the Repository

    git clone https://github.com/your-username/sr-forge.git
    cd sr-forge
    
  2. Install

    pip install -e .
    

Testing

SR FORGE uses pytest (industry standard for Python) for unit tests. Tests run to completion and provide a summary of passes/failures by default (similar to GoogleTest in C++).

Run transform tests

python -m pytest -q tests/transform/test_entry_transforms.py

Run dataset tests

python -m pytest -q tests/dataset

Run model tests

python -m pytest -q tests/models

Useful pytest configurations

  • Verbose per-test output
    python -m pytest -v
    
  • Full summary of passes/failures
    python -m pytest -rA
    
  • Never stop early
    python -m pytest --maxfail=0
    
  • Common "gtest-like" summary
    python -m pytest -v -rA --maxfail=0
    

Optional dependencies and skips

Some tests require optional dependencies (e.g., torch_geometric). These tests are automatically skipped if the dependency is missing, and pytest will report them as skipped in the summary.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srforge-0.8.0.tar.gz (237.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

srforge-0.8.0-py3-none-any.whl (143.9 kB view details)

Uploaded Python 3

File details

Details for the file srforge-0.8.0.tar.gz.

File metadata

  • Download URL: srforge-0.8.0.tar.gz
  • Upload date:
  • Size: 237.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for srforge-0.8.0.tar.gz
Algorithm Hash digest
SHA256 992b7f4f1a72b11783c18e37d7f1c76fa5f74cc697346a0855e75ad3b4d18d1e
MD5 71ff685176838ac848b1a4fb7a460c9a
BLAKE2b-256 20bceb20e7d6f3e05fdf6655723406d9bf19839ac3fba0030fda70589e5b9065

See more details on using hashes here.

File details

Details for the file srforge-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: srforge-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 143.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for srforge-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6d1613bafa49e7e18b68368c150def84bb0c07bd8ab9006c9e8db8acd221d9c
MD5 1810f8553301d32e9365af935ece9c0b
BLAKE2b-256 c6665d6cb228122cc6dda5f1e7927a292f5b2afb39589a7321f240ea182adb53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page