Code Monkey home page Code Monkey logo

location-aware-sirr's Introduction

Location-aware Single Image Reflection Removal

Examples

The shown images are provided by the datasets from IBCLN, ERRNet, SIR2 and the Internet images.

The code and pretrained model for our paper: Location-aware Single Image Reflection Removal [Arxiv Preprint]


Prerequisites

Our code has been tested under the following platform and environment:

  • Ubuntu. CPU or NVIDIA GPU + CUDA, CuDNN
  • Python 3.7.3, Pytorch 1.2.0
  • Requirements: numpy, tqdm, Pillow, dominate, scikit-image

Setup

  • Clone or Download this repo
  • $ cd Location-aware-SIRR
  • $ mkdir model
  • Download the pretrained model here
  • Move the downloaded model(model.pth) to ./model folder

Usage

  • The example test images are provided in ./test_images/blend folder
  • If you have ground truth blackground images, put them into ./test_images/transmission folder ( Note that the same pair of images need to be named the same ).
  • Run python3 inference.py
  • The inference results are in the ./results folder

Citation

If you find our work helpful to your research, please cite our paper.

@article{dong2020location,
  author = {Zheng Dong and Ke Xu and Yin Yang and Hujun Bao and Weiwei Xu and Rynson W.H. Lau},
  title = {Location-aware Single Image Reflection Removal},
  journal={ArXiv},
  volume={abs/2012.07131},
  year = {2020}
}

location-aware-sirr's People

Contributors

zdlarr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

location-aware-sirr's Issues

Training source code

Hello, teacher, The results of your experiment are very impressive on real world dataset. I would like to reproduce the training process to have further research.But there is only evaluation code in github, could you provide the training source code? Thank you so much!

Request issues

Hello, teacher. I downloaded the code and model you provided on the Internet pth。 I want to reproduce the teacher's experiment first, but I'm running information There are the following errors in py (with photos). Do you know the reason, teacher? Thank the teacher for taking time out of his busy schedule to answer the students. Thank you very much!!
image

What is the training data set?

We noticed that you mentioned the setting of training data in the fifth part of your paper.
“For the synthetic data, we use the images dataset from [4]. This dataset has approximately 13700 image pairs of size 256 × 256”.
However, in paper 4(A generic deep architecture for single image reflection removal and image smoothing), about 8k images can be synthesized according to its method, which is not 13700 you mentioned.
In fact, I found the meaning of 13700 in the data set used in the work of "Single Image Reflection Removal with Perceptual Losses".
But I don't know if this is the training dataset you really use. This caused me great confusion.
I would appreciate it if you could answer the question about the source of the composite dataset when you have time!
And it would be better if you could provide the code of data synthesis by the way or indicate which method of data synthesis is most similar to that of the work!
Thank you for your wonderful work!

Training source code

Hello, teacher, The results of your experiment are very impressive on real world dataset. I would like to reproduce the training process to have further research.But there is only evaluation code in github, could you provide the training source code? Thank you so much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.