Git Product home page Git Product logo

depth-distillation's Introduction

Defocus Blur Detection via Depth Distillation

This repo contains the code and results of our ECCV 2020 paper:

Defocus Blur Detection via Depth Distillation
Xiaodong Cun and Chi-Man Pun*
University of Macau

Models | Results | Paper | Supp. | Online Demo!(Google CoLab)

dd

Results

we provide results on two datasets under different backbone(VGG19,ResNext101), please download from Google Drive

Pretrained Models

Dependences

  • PyTorch
  • OpenCV
  • scipy
  • tqdm
  • scikit-learn

Demos

Online Demo!(Google CoLab) is recommanded to evaluate the performance of our method.

Also, you can run a local jupyter server to evalute on CPU or GPU.

  1. Download the pretrianed models and ResNeXt101 backbone and put it to pretrained.

  2. Download the DUT500 dataset and put it to dataset

  3. make sure all the path in paths.py are correct, the folder may like:

depth-distillation/
    - datasets/
        * DUTDefocus/
        * CUHKDefocus/
    - pretrained/
        * res_best.pth
        * vgg_best.pth
        * resnext_101_32x4d.pth
    - models/
    
    other files...
  1. run the jupyter notebook to evaluate.

Acknowledgements

The author would like to thanks Nan Chen for her helpful discussion.

Part of the code is based upon Pytorch-GAN and Shadow Detection

Citation

If you find our work useful in your research, please consider citing:

@misc{cun2020defocus,
      title={Defocus Blur Detection via Depth Distillation}, 
      author={Xiaodong Cun and Chi-Man Pun},
      year={2020},
      eprint={2007.08113},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Contact

Please contact me if there is any question (Xiaodong Cun [email protected])

depth-distillation's People

Contributors

vinthony 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

depth-distillation's Issues

Looks nice !

Do you have any plans to release code with any pretrained models to check accuracy ?

training code

Hi, thanks for your nice work! Any plan for releasing training code?
Thanks in advance!

Model checkpoint of vgg19 seems to be a checkpoint of vgg16

Hey! I wanted to use the VGG best backbone and found the link for it in the readme which took me to google drive. After downloading and going through the checkpoint and the keys it looks like it is actually vgg16 but it is mentioned as vgg19. Can you please confirm and rename the link in the readme?
Thanks in advance

如何得到704张CUHK的图片

感激您令人印象深刻的杰出工作!请问CUHK官方提供的是1k的图片,请问如何得到您的704张并且和您的604和100的划分呢?谢谢您!!!

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.