Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ZiweiWangTHU/CI-BCNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI-BCNN

This is the pytorch implementation for paper: Learning Channel-wise Interactions for Binary Convolutional Neural Networks.

Quick Start

Prerequisites

  • python 3.5+
  • pytorch 1.0.1
  • keras 2.2.3
  • other packages include numpy, tqdm

Dataset & Backbone

Our demo code is for the experiment on CIFAR-10 with the backbone of Resnet-20.

Training and Testing

With all required packages, you can start using the code in the following way.

To train from scratch, run:

python main.py

To train with pretrained backbone, run:

python main.py --pretrain 'path/to/weight'

To evaluate, put the .npy files (xx.npy, yy.npy, influence_state.npy) in one directory, run:

python main.py --evaluate True --pretrain 'path/to/weight' --CI 'dir/to/npys'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages