Giter Club home page Giter Club logo

hse's Introduction

Fine-Grained Representation Learning and Recognition by Exploiting Hierarchical Semantic Embedding

Introduction

This repository contains the pytorch codes, trained models, and datasets described in the paper "Fine-Grained Representation Learning and Recognition by Exploiting Hierarchical Semantic Embedding".

For more details, please visit our project page.

Results

  • Accuracy on Caltech UCSD Birds
order family genus class
baseline 98.8 95.0 91.5 85.2
HSE(ours) 98.8 95.7 92.7 88.1
  • Accuracy on Butterfly200
family subfamily genus species
baseline 98.9 97.6 94.8 85.1
HSE(ours) 98.9 97.7 95.4 86.1
  • Accuracy on Vegfru
sup sub
baseline 90.0 87.1
HSE(ours) 90.0 89.4

Installation

Requirement

  • pytorch, tested on v0.4.0
  • CUDA, tested on v8.0
  • Language: Python 2.7

1. Clone the repository

Clone the Hierarchical Semantic Embedding project by:

git clone https://github.com/HCPLab-SYSU/HSE.git

and we denote the folder hse-mm2018 as $HSE_ROOT.

Note that, the correct structure of $HSE_ROOT is like:

hse-mm2018
.
├── code
│   ├── Butterfly200
│   │   ├── baseline
│   │   └── HSE
│   ├── CUB_200_2011
│   │   ├── baseline
│   │   └── HSE
│   └── Vegfru
│       ├── baseline
│       └── HSE
├── data
│   ├── Butterfly200
│   │   └── images
│   ├── CUB_200_2011
│   │   └── images
│   └── Vegfru
│       └── images
├── models
│   ├── Butterfly200
│   ├── CUB_200_2011
│   └── Vegfru
└── scripts

2. Download datasets

Caltech UCSD Birds originally covers 200 classes of birds, and we extend this dataset with a four-level category hierarchy.

Butterfly 200 is constructed in our paper, it also cover four-level categories.

Vegfru is proposed by Hou et al., ICCV2017, and it covers two-level categories.

3. Download trained models

The trained models of our HSE framework and the baseline methods on the extended Caltech UCSD birds, Butterfly-200, and VegFru datasets can be downloaded from OneDrive or Baidu Cloud.

4. Deployment

Firstly, make sure the working directory is $HSE_ROOT, or

cd $HSE_ROOT

then, run the deployment script:

deploy HSE

./scripts/deploy_hse.sh [GPU_ID] [DATASET]
----
GPU_ID: required, 0-based int, 
DATASET: required, 'CUB_200_2011' or 'Butterfly200' or 'Vegfru'

deploy baseline

./scripts/deploy_baseline.sh [GPU_ID] [DATASET] [LEVEL]
----
GPU_ID: required, 0-based int, 
DATASET: required, 'CUB_200_2011' or 'Butterfly200' or 'Vegfru'
LEVEL: require, 
    CUB_200_2011: LEVEL is chosen in ['order', 'family', 'genus', 'class']
    Butterfly200: LEVEL is chosen in ['family', 'subfamily', 'genus', 'species']
    Vegfru: LEVEL is chosen in ['sup', 'sub']

License

The code is released under the SYSU License (refer to the LICENSE file for details). The Human Cyber Physical Intelligence Integration Lab owns this project.

Citing

@inproceedings{chen2018fine,
    Author = {Tianshui Chen, Wenxi Wu, Yuefang Gao, Le Dong, Xiaonan Luo, Liang Lin},
    Title = {Fine-Grained Representation Learning and Recognition by Exploiting Hierarchical Semantic Embedding},
    Booktitle = {Proc. of ACM International Conference on Multimedia (ACM MM)},
    Year = {2018}
} 

Contributing

For any questions, feel free to open an issue or contact us. ([email protected] or [email protected])

hse's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hse's Issues

Training code

Dear Tianshui, when will you release the training codes? Thanks a lot.

Training process.

Could you please tell me how to train the models from scratch? I'm new in Pytorch and I cannot find the training script. Thank you.

about Butterfly 200

The link of Butterfly 200 dataset can't be opened. Can you provide other downloads?

About the veg-fru dataset

Veg-fru dataset has a test set which is much bigger than the train set and val set. I'd like to know if you can tell me which two of them are used as the training set and validation set during training phase. And which one of them is used in your paper to get the top-1 accuracy? Thank you very much.

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.