GithubHelp home page GithubHelp logo

pris-cv / pmg-v2 Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 3.0 136 KB

Code release for "Progressive Learning of Category-Consistent Multi-Granularity Features for Fine-Grained Visual Classification"

Python 100.00%
fgvc

pmg-v2's Introduction

PMG-V2

Code release for "Progressive Learning of Category-Consistent Multi-Granularity Features for Fine-Grained Visual Classification" (IEEE T-PAMI 2021).

It is the extended version of "Fine-Grained Visual Classification via Progressive Multi-Granularity Training of Jigsaw Patches" (ECCV2020): https://github.com/PRIS-CV/PMG-Progressive-Multi-Granularity-Training

Requirement

python >= 3.6

PyTorch >= 1.3.1

torchvision >= 0.4.2

pandas >= 0.23.0

Training

  1. Download datatsets for FGVC (e.g. CUB-200-2011, NA-Birds, Standford Cars, FGVC-Aircraft, etc) and organize the structure as follows:
data
├── bird_train.txt
├── bird_text.txt
├── train
│   ├── Black_Footed_Albatross_0065_796068.jpg
|   ├── Black_Footed_Albatross_0042_796071.jpg
|   ├── Black_Footed_Albatross_0090_796077.jpg
│   └── ...
└── test
    ├── Black_Footed_Albatross_0046_18.jpg
    ├── Black_Footed_Albatross_0002_55.jpg
    ├── Black_Footed_Albatross_0085_92.jpg
    └── ...
  1. Train from scratch with train.py.

Contact

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

pmg-v2's People

Contributors

ruoyidu avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

ruoyidu

pmg-v2's Issues

Question about the number of categories in nabirds

First of all, thank you for your novel work。
I have a problem when I train with the nabirds dataset as required by the dataset format, an exception occurs when setting the number of categories to 555. I would like to know if you are having this problem or if you have set a different number of categories。

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.