# RACNN-pytorch **Repository Path**: usefordev/RACNN-pytorch ## Basic Information - **Project Name**: RACNN-pytorch - **Description**: This is a third party implementation of RA-CNN in pytorch. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RACNN-pytorch This is a third party implementation of RA-CNN in pytorch. I am still working on reproducing a same performance written in [paper](https://www.microsoft.com/en-us/research/wp-content/uploads/2017/07/Look-Closer-to-See-Better-Recurrent-Attention-Convolutional-Neural-Network-for-Fine-grained-Image-Recognition.pdf) You can download CUB200 dataset from this [page](http://www.vision.caltech.edu/visipedia-data/CUB-200-2011/CUB_200_2011.tgz) and un-compress using this command `tar -xvf CUB_200_2011.tgz -C data/` ## Requirements - python3 - [Pytorch 1.2](https://github.com/pytorch/pytorch#from-source) - torchvision - numpy - [tensorflow](https://www.tensorflow.org/install/), optional ## TODO - [x] Network building - [ ] Repactoring for arguments - [ ] Pre-training a APN - [ ] Alternative training between APN and ConvNet/Classifier - [ ] Reproduce and report on README.md - [ ] Sample visualization - Followed this [impl](https://github.com/klrc/RACNN-pytorch) - [ ] Add new approach to improve ## Current issue - Don't know how to pre-train a APN. Need more details - Rankloss doesn't decrease. Because no pretrain? or bugs? ## Results Current best is 71.68% at scale1 without APN pretraining. It's bad than using just VGG19 ## Usage For training, use following command. ```bash $ python trainer.py ``` or ```bash $ ./train.sh ``` Currently only cuda available device support. If you want to see training process, ```bash $ Tensorboard --log='visual/' --port=6666 ``` and go to 'localhost:6666' on webbrowser. You can see the Loss, Acc and so on. ## References - [Original code](https://github.com/Jianlong-Fu/Recurrent-Attention-CNN) - [Other pytorch implementation](https://github.com/Charleo85/DeepCar) - with car dataset, I refer the attention crop code from here