Giter Site home page Giter Site logo

ouceduxzk / fine_grained_classification Goto Github PK

View Code? Open in Web Editor NEW
99.0 5.0 39.0 8.93 MB

Fined grained classification On Car dataset

Python 4.12% Shell 0.32% MATLAB 0.39% CMake 1.22% Makefile 0.27% HTML 0.08% CSS 0.10% Jupyter Notebook 57.69% C++ 33.33% Cuda 2.47%
dl fine-grained classification car ra-cnn

fine_grained_classification's Introduction

Fine_Grained_Classification

Task : Classification of 196 classes of cars with less than 9k images for training. It's intend for replication of the work :

Monza: Image Classification of Vehicle Make and Model Using Convolutional Neural Networks and Transfer Learning
  1. use pre-trained googlenet
  2. train with normal rates
  3. Achieved 87% top1 accuracy and 97% top5 acc with 10000 iterations

Lessons learned :

1.  Training from scratch is very hard with less data and more class.
2.  Bounding box of the car really helps
3.  fine tuning need to select a good lr and make the bottom layers learn slow, but the last few layers learn fast.

fine_grained_classification's People

Contributors

ouceduxzk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fine_grained_classification's Issues

How to pre-train APNs ?

I trained this model on my dataset but i am not getting much improvement in accuracy than directly using fine-tuned googLenet. Maybe because i didn't use pre-trained APNs. So how do i train APN?

I have following questions regarding pretraining APN :
1. In RA-CNN paper what does it mean to select the square from original image with the highest response value in the last conv5_4 layer? (conv5_4 blobs.data.shape is 32, 512, 14, 14)
2. Which dataset you are using to train these APNs?

make error,how can this problem be solved?

../lib/libcaffe.so.1.0.0:对‘caffe::RankLoss2Layer::Forward_gpu(std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&, std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&)’未定义的引用
../lib/libcaffe.so.1.0.0:对‘caffe::RankLoss2Layer::Backward_gpu(std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&, std::vector<bool, std::allocator > const&, std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&)’未定义的引用

how does the backward of attention_crop_layer work?

hi~ I'm trying to reproduce the RA-CNN paper, I read your code of attention_crop_layer, I am puzzled the idea of your Backward part. I don't know why you compute the max top diff, then use a coefficient of 0.0000001?

The Rank_Loss in train_val_fixcls.prototxt?

Hi ,guy
I have a question about the rank_loss in train_val_fixcls.prototxt.In the RA-CNN/alternate_training/train_val_fixcls.prototxt, you concat prob1,prob2,prob3 compute rank_loss.I think there are two rank_loss.The first rank_loss between prob1,prob2 and the second rank_loss between prob2,prob3. @ouceduxzk

Training Process of RA-CNN

Hi, I'm confused about the your training process when reproducing RA-CNN.

I wonder whether it is appropriate to pretrain APN for first 50k iterations, then fix parameters in APN and train CNN for next 50k iterations, and further fix parameters in CNN and train APN for next iterations, and finally train them all for the final 50k iterations.

Thanks a lot !

How the grad flow back while training APN?

Hi, im trying to reimplement RACNN, and your src code helps me a lot.

But here are some questions confuse me.

  1. How the grad flow back to APN while training APN? I mean that APN have 2 inputs: last image and coordinates[tx, ty, tl] from FC layer, and the output is cropped finer image. But while backprop, how to compute grad of [tx, ty, tl]?

  2. Rank loss indeed takes as inputs two probabilities in paper, how to optimize 3 APN networks from 2 loss?

Thanks a lot.

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.