Code Monkey home page Code Monkey logo

fine-grained-or-not's Introduction

Fine-Grained-or-Not

Code release for Your “Flamingo” is My “Bird”: Fine-Grained, or Not (CVPR 2021 Oral) DOI

Changelog

  • 2021/03/05 upload the code.

Requirements

  • python 3.6
  • PyTorch 1.2.0
  • torchvision

Data

  • Download datasets
  • Extract them to data/cars/, data/birds/ and data/airs/, respectively.
  • Split the dataset into train and test folder, the index of each class should follow the Birds.xls, Air.xls, and Cars.xls
  • e.g., CUB-200-2011 dataset
  -/birds/train
	         └─── 001.Black_footed_Albatross
	                   └─── Black_Footed_Albatross_0001_796111.jpg
	                   └─── ...
	         └─── 002.Laysan_Albatross
	         └─── 003.Sooty_Albatross
	         └─── ...
   -/birds/test	
             └─── ...         

Training

  • python Birds_ours_resnet.py or python Air_ours_resnet.py or python Cars_ours_resnet.py

Citation

If you find this paper useful in your research, please consider citing:

@InProceedings{Chang2021Labrador,
  title={Your “Flamingo” is My “Bird”: Fine-Grained, or Not},
  author={Chang, Dongliang and Pang, Kaiyue and Zheng, Yixiao and Ma, Zhanyu and Song, Yi-Zhe and Guo, Jun},
  booktitle = {Computer Vision and Pattern Recognition},
  year={2021}
}

Contact

Thanks for your attention! If you have any suggestion or question, you can leave a message here or contact us directly:

fine-grained-or-not's People

Contributors

dongliangchang 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

Watchers

 avatar  avatar  avatar  avatar

fine-grained-or-not's Issues

AIR和CAR数据集

您好,非常感谢您可以分享代码,但是我在复现您论文中的实验结果的过程中发现AIR数据集和CAR数据集与论文所展示的结果相差特别大,是否air.xls和car,xls文件有错?
希望得到您的回复,再次感谢!

Training set of FGVC-Aircraft

Split the dataset into train and test folder, the index of each class should follow the Birds.xls, Air.xls, and Cars.xls

Hi, did you merge the training and validation set of FGVC-Aircraft into a new training set in your settings? Thank you!

how to reach 94.3 accuracy on stanford-cars?

hi!When the image size is 224224, the accuracy rate can reach about 89.4(species_acc). When I change the image size to 448448, the accuracy rate is less than 80. How to achieve the 94.3 accuracy rate in the paper? Have you modified any other training parameters(epoch or lr or batchsize or others)?

A wrong label in Birds_name.xlsx for CUB-200-2011

Hi, I was using the Birds_name.xlsx file to build a tree of labels when I noticed there's an error in the file at row 85:

species | family | order
Red_legged_Kittiwake | Laridae | Coraciiformes

the order of Red_legged_Kittiwake should be Charadriiformes

Loss is nan?

hello,why does the training loss keep increasing and gradually become nan?
(python 3.8 torch 1.7 torchvision 0.8)

Test set of CUB

Greetings!
Love this work
But I have a silly question, there are some strange species in sheet2 in birds.xlsx, what should I do? Shoud I make some dir whose name is that ?

Cross Entropy loss or NLL loss

Hi, Thanks for the nice repo!

I just wanted clarification about the NLL criterion in the code. Are the results in Birds.out using Cross Entropy criterion or NLL criterion?

Also, I tried running the code as is (using NLL criterion), train and test loss becomes nan.

Thanks once again.

The name list of family and species?

Greetings!
Love this work. Could you release the name list of family and species, please? I am curious about how you organize the 200 bird names.

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.