Git Product home page Git Product logo

dcl's Introduction

Destruction and Construction Learning for Fine-grained Image Recognition

By Yue Chen, Yalong Bai, Wei Zhang, Tao Mei

Introduction

This code is relative to the DCL, which is accepted on CVPR 2019.

This DCL code in this repo is written based on Pytorch 0.4.0.

This code has been tested on Ubuntu 16.04.3 LTS with Python 3.6.5 and CUDA 9.0.

Yuo can use this public docker image as the test environment:

docker pull pytorch/pytorch:0.4-cuda9-cudnn7-devel

Citing DCL

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

@article{chen2019dcl,
  title={Destruction and Construction Learning for Fine-grained Image Recognition},
  author={Chen Yue and Bai, Yalong and Zhang Wei and Mei Tao},
  journal={arXiv preprint arXiv:},
  year={2019}
}

Requirements

  1. Pytorch 0.4.0

  2. Numpy, Pillow, Pandas

  3. GPU: P40, etc. (May have bugs on the latest V100 GPU)

Datasets Prepare

  1. Download CUB-200-2011 dataset form Caltech-UCSD Birds-200-2011

  2. Unzip the dataset file under the folder 'datasets'

  3. Run ./datasets/CUB_pre.py to generate annotation files 'train.txt', 'test.txt' and image folder 'all' for CUB-200-2011 dataset

Testing Demo

  1. Download CUB_model.pth from Google Drive.

  2. Run CUB_test.py

Training on CUB-200-2011

  1. Run train.py to train and test the CUB-200-2011 datasets. Wait about half day for training and testing.

  2. Hopefully it would give the evaluation results around ~87.8% acc after running.

Support for other datasets will be updated later

dcl's People

Stargazers

 avatar

Watchers

James Cloos avatar

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.