Code Monkey home page Code Monkey logo

unsupervised-domain-specific-deblurring's Introduction

Unsupervised Domain-Specific Deblurring via Disentangled Representations

Pytorch implementation of the paper Unsupervised Domain-Specific Deblurring via Disentangled Representations. The proposed method is unsupervised and takes blurred domain-specific image (faces or text) as an input and procude the corresponding sharp estimate.

contact: [email protected]

Sample Results

TO BE ADDED...

Dataset

To train the model, unpaired sharp and blurred images folders should be named in the following format: datasets/name/trainA and datasets/name/trainB. Test images can be stored in the same folder and you may choose your own folder name.

Usage

Data Preperation

In our experiment, face data is from CelebA dataset and text data is from BMVC text dataset. To manually blur the images, we use the method proposed in DeblurGAN. The dataset are randomly split into three subsets: trainA (sharp), trainB(blur) and test set.

Train

To train the model, run the following command line in the source code directory. You may set other parameters based on your experiment setting.

python train.py --dataroot ../datasets/DatasetName/ --name job_name --batch_size 2 --lambdaB 0.1 --lr 0.0002

Test

Our pre-trained model for face and text can be downloaded here. To test the model, run the following command line in the source code directory. You may set other parameters based on your experiment setting. To choose the perceptual loss type as face, you need to manually set the VGG face model path in network.py. VGG_face pretrained model can be found here.

python test.py --dataroot ../datasets/dataset_name/test_blur/ --num 1 --resume ../results/model/locations --name job_name --orig_dir ../datasets/dataset_name/test_orig --percep face

Citation

If you find the code helpful in your research or work, please kindly cite our paper.

@inproceedings{lu2019unsupervised,
  title={Unsupervised domain-specific deblurring via disentangled representations},
  author={Lu, Boyu and Chen, Jun-Cheng and Chellappa, Rama},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  pages={10225--10234},
  year={2019}
}

Acknowledgments

The code borrows heavily from DRIT. We use the image blurring method in DeblurGAN.

unsupervised-domain-specific-deblurring's People

Contributors

mjiust avatar ustclby 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.