An Easy-to-use Toolbox for Single-image Reflection Removal
Project description
XReflection - An Easy-to-use Toolbox for Single-image Reflection Removal
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bdc71f6b5d9d87b7a496acbfcc7695ec79063fa7d13d27938bda0b13d835bb0
|
|
| MD5 |
b4a179e6f8a48eeeaf113c9b0d243d62
|
|
| BLAKE2b-256 |
156a2f634f2e7e81fb8b9ec71f5ba7e26f9074b6a6edc162110b6ef2bdd3b137
|
Provenance
The following attestation bundles were made for xreflection-0.0.1a0.tar.gz:
Publisher:
python-publish.yml on hainuo-wang/XReflection
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xreflection-0.0.1a0.tar.gz -
Subject digest:
4bdc71f6b5d9d87b7a496acbfcc7695ec79063fa7d13d27938bda0b13d835bb0 - Sigstore transparency entry: 276187366
- Sigstore integration time:
-
Permalink:
hainuo-wang/XReflection@349b1df09e217a9f176adce56e88093ebfa330b1 -
Branch / Tag:
refs/tags/v0.0.1-alpha - Owner: https://github.com/hainuo-wang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@349b1df09e217a9f176adce56e88093ebfa330b1 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f545fce8355d07cbc47fa799f1d631ce660ba6b7ec80a8d4e127cec2dee55950
|
|
| MD5 |
93cdc060954a5ab3e93857db1c8bce84
|
|
| BLAKE2b-256 |
686d71ce522d665b30fbf94f5e5c4846f17fb8b583e0e03f4bd5aec7c68d0add
|
Provenance
The following attestation bundles were made for xreflection-0.0.1a0-py3-none-any.whl:
Publisher:
python-publish.yml on hainuo-wang/XReflection
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xreflection-0.0.1a0-py3-none-any.whl -
Subject digest:
f545fce8355d07cbc47fa799f1d631ce660ba6b7ec80a8d4e127cec2dee55950 - Sigstore transparency entry: 276187372
- Sigstore integration time:
-
Permalink:
hainuo-wang/XReflection@349b1df09e217a9f176adce56e88093ebfa330b1 -
Branch / Tag:
refs/tags/v0.0.1-alpha - Owner: https://github.com/hainuo-wang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@349b1df09e217a9f176adce56e88093ebfa330b1 -
Trigger Event:
release
-
Statement type: