Coder Social home page Coder Social logo

g2r-shadownet's Introduction

G2R-ShadowNet

From Shadow Generation to Shadow Removal.

Dependencies

This code uses the following libraries

  • python 3.7+
  • pytorch 1.1+ & tochvision
  • scikit-image

Training code and data

Generate the training data using the original ISTD dataset and the code gettraindata.m

or download the training data from: GoogleDrive: ISTD | BaiduNetdisk: ISTD (Access code: 1111)

Testing masks produced by BDRAR

GoogleDrive: ISTD

BaiduNetdisk: ISTD (Access code: 1111)

Train and test on the adjusted ISTD dataset

Train

  1. Set the path of the dataset in train.py
  2. Run train.py

Test

  1. Set the paths of the dataset and saved models (netG_1.pth) and (netG_2.pth) in test.py
  2. Run test.py

Evaluate

  1. Set the paths of the shadow removal results and the dataset in evaluate.m
  2. Run evaluate.m

The Best Models on ISTD

GoogleDrive: ISTD

BaiduNetdisk: ISTD (Access code: 1111)

Results of G2R-ShadowNet on ISTD

GoogleDrive: ISTD

BaiduNetdisk: ISTD (Access code: 1111)

Results of G2R-ShadowNet-Sup. on ISTD

GoogleDrive: ISTD

BaiduNetdisk: ISTD (Access code: 1111)

ISTD Results (size: 480x640)

Method Shadow Region Non-shadow Region All
Le & Samaras (ECCV20) 11.3 3.7 4.8
G2R-ShadowNet (Ours) 9.6 3.8 4.7

Results in shadow and non-shadow regions are computed on each image first and then compute the average of all images in terms of RMSE.

Acknowledgments

Code is implemented based on Mask-ShadowGAN and LG-ShadowNet.

All codes will be released to public soon.

@inproceedings{liu2021from,
  title={From Shadow Generation to Shadow Removal},
  author={Liu, Zhihao and Yin, Hui and Wu, Xinyi and Wu, Zhenyao and Mi, Yang and Wang, Song},
  booktitle={CVPR},
  year={2021}
}

其他说明

有问题可以联系我 +86 18410949118 刘志浩

g2r-shadownet's People

Contributors

balinlin avatar hhqweasd avatar

Watchers

 avatar

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.