Practical overview
When it fits
Use it when you need research code and a documented workflow for experimenting with reflection separation from single images, rather than a ready-to-use photo-editing interface.
Who it is for
- Computer-vision researchers studying single-image reflection removal
- Developers who want to examine or adapt Python research code for reflection separation
- Users preparing image datasets or testing the provided pretrained model
Documented uses
- Test reflection separation on a folder of images with the provided pretrained model
- Train the model from synthetic and real image data
- Continue training from an existing checkpoint
- Organize synthetic and real datasets for the repository's data loader
Requirements & limits
The GitHub repository is public and lists an Apache-2.0 license.
- The repository specifies TensorFlow 2.10 or earlier and tf-slim 1.1.0; other tf-slim versions are described as potentially suitable but untested.
- Setup requires a separately downloaded pretrained VGG-19 model placed in
VGG_Model. - The README says the code was tested on Ubuntu 16.04 LTS.
- The testing workflow uses a pretrained model archive and requires setting the test-image path in
main.py. - Real training data is documented as blended images plus transmission-layer ground truth, without ground-truth reflection layers.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Test images with the provided pretrained model
Prepare the documented pretrained-model testing workflow and locate its output folder.
Before you start
- A clone or download of the repository
- TensorFlow 2.10 or earlier and tf-slim 1.1.0
- The pretrained model archive
- A folder of test images
Steps
Download the pretrained model archive and extract it; the README says this creates a
pre-trainedfolder.Set
test_pathinmain.pyto the test-image folder, or keep the supplied test-image path.Run the command below.
python main.py --task pre-trained --is_training 0
Expected outcome
The README says test results are written to `./test_results/`.
Guide limitations
- The instructions specify editing
test_pathat line 419 ofmain.py. - The README reports testing on Ubuntu 16.04 LTS and specifies TensorFlow 2.10 or earlier with tf-slim 1.1.0.
Prepare the documented training data layout
Organize synthetic or real image data in the folder structure expected by the repository's data loader.
Before you start
- For synthetic data, separate image folders for reflection and transmission layers
- For real data, blended images and transmission-layer ground truth
Steps
For synthetic data, create a root folder with
reflection_layerandtransmission_layersubfolders; synthetic blends are generated on the fly.For real data, create a root folder with
blendedandtransmission_layersubfolders.Use the resulting root paths as the synthetic and real data directories in the training instructions.
Expected outcome
The data directories are arranged for the README's training workflow, which accepts synthetic and real data paths.
Guide limitations
- The real-data layout has no ground-truth reflection-layer folder.
- The README describes the folder layout and training commands but does not establish that a particular dataset will train successfully.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 November 2026
- Original website title
- ceciliavision/perceptual-reflection-removal · Official homepage title · retained in its source language

