Git Product home page Git Product logo

cbcn_pytorch's Introduction

Prepare

Environment: PyTorch (0.4.0), torchvision (0.2.1), tensorboardX, python3, CUDA(8.0)
• git clone https://github.com/liuchunlei0430/CBCN_Pytorch.git get the ImageNet dataset ready
Install Convolutional Module and Binary Module
• cd install
• sh install.sh
• cd BinActivateFunc_PyTorch
• sh install.sh

Train and Evaluation

• Train: python ImageNet.py [dataset_dir] --tensorboard
• Evaluation: python ImageNet.py [dataset_dir] --pretrained --tensorboard
CBCN(without centerloss finetune) models can be obtained in https://drive.google.com/open?id=1wXL5LJAE6oduDBM7if4zeoSIJ0tjS4sS.
CBCN(with centerloss finetune) is prepared to upload in Google Drive.

ResNet18 Full-precision CBCN(without centerloss finetune) CBCN(with centerloss finetune)
Top-1 69.3 61.0 61.4

Thanks for the code of ORN! Inspired by ORN which already show their powerful ability in within-class rotation-invariance, we also employ similar way to enhance the representative ability which destoryed by the binarization process. We focus on storate reduction in our CBCNs. More detail can be seen in the install/orn/modules/ORConv.py.

Please cite

@inproceedings{liu2019cbcn,
title={Circulant Binary Convolutional Networks: Enhancing the Performance of 1-bit DCNNs with Circulant Back Propagation},
author={Liu, ChunLei and Ding, Wenrui and Xia, Xin and Zhang, Baochang and Gu, Jiaxin and Liu, Jianzhuang and Ji, Rongrong and David, Doermann },
booktitle={IEEE Conference on Computer Vision and Pattern Recognition},
year={2019}
}
@ inproceedings{Zhou2017ORN,
author = {Zhou, Yanzhao and Ye, Qixiang and Qiu, Qiang and Jiao, Jianbin},
title = {Oriented Response Networks},
booktitle = {CVPR},
year = {2017}
}

cbcn_pytorch's People

Contributors

liuchunlei0430 avatar

Stargazers

彭福 avatar Wang Bomin avatar Haleski avatar

Watchers

 avatar

cbcn_pytorch's Issues

How is BinActivateFunc_bireal realized?

Hi, I was wondering how BinActivateFunc_bireal is realized in resnet18_imagenet.py, since it's not applied to convolution layer in the forward function. Also after running your code, the weights are not binarized. Did you miss sth in codes, or maybe it's my pytorch version issue? Thanks if you can check and reply!

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.