xnornet code from https://github.com/legolas123/cv-tricks.com/tree/master/xnornet_plusplus. main.py and resnet_preact_bin.py modified to fit XNOR-net (XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks) command: python main.py