Git Product home page Git Product logo

deep-adaptive-wavelet-network's Introduction

A PyTorch Implementation for "Deep Adaptive Wavelet Network"

This repository contains a PyTorch implementation of the paper Deep Adaptive Wavelet Network. The code is based on the excellent PyTorch example for training ResNet on Imagenet.

However, the code contains several major modifications like more models and databases. CIFAR databases are provided by pytorch default implementation. For KTH database, you first need to install the files on your machine, KTH-TIPS.

The networks definition provided by this code are:

  • Deep Adaptive Wavelet (DAWN)
  • Texture-CNN (TCNN) [1]
  • Wavelet CNN [2]
  • Scatter networks [3]
  • Densenet [4]
  • Resnet [5]
  • VGG (variation using BN) [6]

Each of these networks can be selected using the network name inside the command line and changing its hyperparameters. Almost all the networks can be trained on the different databases supported in this code.

This is an example to train DAWN on CIFAR-100 with 128 initial convolutions.

$ python train.py --epochs 300 -b 64 --lr 0.03 --name dwnn_cifar-100_32 --lrdecay 150 225 --database cifar-100 --tempdir ~/tmp  dawn --regu_detail 0.1 --regu_approx 0.1 --levels 3 --first_conv 128

This is another example for KTH database with DAWN:

$ python train.py --epochs 90 -b 16 --lr 0.03 --name dwnn_kth_3_dwnn_l5_16 --lrdecay 30 60 --database kth --traindir $KTH_DATA_DIR/KTH-TIPS2-b3/Test/ --valdir $KTH_DATA_DIR/KTH-TIPS2-b3/Train/ dawn --levels 5 --first_conv 16 --regu_details 0.1 --regu_approx 0.1

Cite

If you use DWNN in your work, please cite the original paper as:

@misc{Bastidas2019deep,
    title={Deep Adaptive Wavelet Network},
    author={Maria Ximena Bastidas Rodriguez and Adrien Gruson and Luisa F. Polania and Shin Fujieda and Flavio Prieto Ortiz and Kohei Takayama and Toshiya Hachisuka},
    year={2019},
    eprint={1912.05035},
    archivePrefix={arXiv},
    primaryClass={cs.CV}
}

This is the arvix link for now. This Readme will be updated when the WACV paper will be released.

TODO

  • Add script to regenerate all results shown inside the paper

References

[1] P. F. W. Vincent Andrearczyk. "Using filter banks in convolutional neural networks for texture classification." (arXiv:1601.02919, 2016)
[2] Fujieda et al. "Wavelet convolutional neural networks." (arXiv:1805.08620 , 2018)
[3] Oyallon et al. "Scaling the scattering transform: Deep hybrid networks" (ICCV, 2017)
[4] Huang et al. "Densely connected convolutional networks." (arXiv:1608.06993, 2016)
[5] He et al. "Deep Residual Learning for Image Recognition." (arXiv:1512.03385, 2015)
[6] http://torch.ch/blog/2015/07/30/cifar.html

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.