XNOR-Net-PyTorch icon indicating copy to clipboard operation
XNOR-Net-PyTorch copied to clipboard

XNOR for ResNet

Open XinDongol opened this issue 6 years ago • 10 comments

I was wondering whether there is XNOR for ResNet. Or can you give some hints about how to implement it?

XinDongol avatar May 03 '18 00:05 XinDongol

Also interested in XNOR for ResNet! @XinDongol have you implemented it yourself?

jxgu1016 avatar Jun 01 '18 08:06 jxgu1016

Has anyone implemented XNOR for Resnet ?

25b3nk avatar Aug 01 '18 14:08 25b3nk

I do not mind implementing ResNet for this if there is interest. However, I will not be able to train it. I think this task mostly just involves changing the class AlexNet here.

akhauriyash avatar Sep 08 '18 19:09 akhauriyash

I have implemented XNOR-net for ResNet. Basically took the resnet.py from torchvision and added the binary Convolution classes from this repo's alexnet.py and then changed the convolutions in resnet.py from nn.Conv2D to BinConv2D.

25b3nk avatar Sep 10 '18 05:09 25b3nk

I have implemented ResNet-XNOR and reproduce result of xnor paper. I will release it soon when I have time.

XinDongol avatar Sep 21 '18 04:09 XinDongol

@XinDongol could you kindly share the python models directory code for the ResNet-xNOR with me? Thanks!

akhauriyash avatar Oct 01 '18 08:10 akhauriyash

I have implemented ResNet-XNOR and reproduce result of xnor paper. I will release it soon when I have time.

Could you please share it with me too? Thanks!

dorian95 avatar Oct 31 '18 01:10 dorian95

@XinDongol Would you like to share the python models directory code for the ResNet-XNOR or share the implementation idea?

appleleaves avatar Jan 15 '19 09:01 appleleaves

@XinDongol Any update on the thread?

blueardour avatar Jun 11 '19 00:06 blueardour

I have implemented the xnornet ++ paper with resnet-18. You can disable alpha, beta, gamma(scale factors for activation) in model file(BinConv2d). Then you can have the xnornet for resnet-18. Btw xnornet++ is improvement over xnornet and my implementation reaches 60% accuracy for 1 bit activation and 1 bit width. The link is https://github.com/legolas123/cv-tricks.com/tree/master/xnornet_plusplus

legolas123 avatar Jun 23 '20 23:06 legolas123