Skip to main content

An Easy-to-use Toolbox for Single-image Reflection Removal

Project description

XReflection - An Easy-to-use Toolbox for Single-image Reflection Removal

XReflection Logo

XReflection is a neat toolbox tailored for single-image reflection removal(SIRR). We offer state-of-the-art SIRR solutions for training and inference, with a high-performance data pipeline, multi-GPU/TPU support, and more!


📰 News and Updates

  • [2025-07-16] DSRNet is available in the model zoo. More models are on the way!
  • [2025-05-26] Release a training/testing pipeline.

💡 Key Features

  • All-in-one intergration for the state-of-the-art SIRR solutions. We aim to create an out-of-the-box experience for SIRR research.
  • Multi-GPU/TPU support via PyTorchLightning.
  • Pretrained model zoo.
  • Fast data synthesis pipeline.

📝 Introduction

Please visit the documentation for more features and usage.


🚀 Installation

Installation Commands

# Build from source
git clone https://github.com/hainuo-wang/XReflection.git
cd XReflection

# Install dependencies
pip install -r requirements.txt
python setup.py develop

📦 Getting Started

Testing a Pretrained Model

python tools/train.py --config configs/train_config.yaml --resume pretrained.ckpt --test_only

Training a Model

python tools/train.py --config configs/train_config.yaml

Data Preparation

Training dataset

  • 7,643 images from the Pascal VOC dataset, center-cropped as 224 x 224 slices to synthesize training pairs;
  • 90 real-world training pairs provided by Zhang et al.;
  • 200 real-world training pairs provided by IBCLN.

Testing dataset

  • 45 real-world testing images from CEILNet dataset;
  • 20 real testing pairs provided by Zhang et al.;
  • 20 real testing pairs provided by IBCLN;
  • 454 real testing pairs from SIR^2 dataset, containing three subsets (i.e., Objects (200), Postcard (199), Wild (55)).

Download all in one from https://checkpoints.mingjia.li/sirs.zip


🌟 Features in Detail

Pretrained Model Zoo

Access pretrained models for various SIRR algorithms: TODO


🙏 License and Acknowledgement

This project is licensed under the Apache License 2.0. See the LICENSE file for details. The authors would express gratitude to the computational resource support from Google's TPU Research Cloud.

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

xreflection-0.0.1a0.tar.gz (108.7 kB view details)

Uploaded Source

Built Distribution

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

xreflection-0.0.1a0-py3-none-any.whl (135.0 kB view details)

Uploaded Python 3

File details

Details for the file xreflection-0.0.1a0.tar.gz.

File metadata

  • Download URL: xreflection-0.0.1a0.tar.gz
  • Upload date:
  • Size: 108.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xreflection-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 4bdc71f6b5d9d87b7a496acbfcc7695ec79063fa7d13d27938bda0b13d835bb0
MD5 b4a179e6f8a48eeeaf113c9b0d243d62
BLAKE2b-256 156a2f634f2e7e81fb8b9ec71f5ba7e26f9074b6a6edc162110b6ef2bdd3b137

See more details on using hashes here.

Provenance

The following attestation bundles were made for xreflection-0.0.1a0.tar.gz:

Publisher: python-publish.yml on hainuo-wang/XReflection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xreflection-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: xreflection-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 135.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xreflection-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 f545fce8355d07cbc47fa799f1d631ce660ba6b7ec80a8d4e127cec2dee55950
MD5 93cdc060954a5ab3e93857db1c8bce84
BLAKE2b-256 686d71ce522d665b30fbf94f5e5c4846f17fb8b583e0e03f4bd5aec7c68d0add

See more details on using hashes here.

Provenance

The following attestation bundles were made for xreflection-0.0.1a0-py3-none-any.whl:

Publisher: python-publish.yml on hainuo-wang/XReflection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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