Git Product home page Git Product logo

reid_ide_pytorch's Introduction

IDE model for Re-ID

this is a baseline model which is exactly the same as standard image classification model using softmax loss.

more specifically, every identity is recognized as a specific class during training.

for example, in Market-1501 there are 751 classes (751 identities).

here the backbone network is ResNet-50.

when deployment, extracting feature from the second last layer.

rank-1 accuracy is, around 75%, in Market-1501. don't care too much about it. just a baseline.

usage

environments
  • python 2.7, pytorch 0.3.0, matlab
  • assuming you have a GPU
preliminary
  • run ./data/make_imdb_Duke.m and ./data/make_imdb_Market.m in MATLAB to organize the datasets.
  • don't forget to replace the dir_path with yours, which should contain the original dataset, where the folders are renamed as 'train', 'test' and 'query'. if not clear, you can read the code without difficulty.
  • download the pretrained model parameter from https://download.pytorch.org/models/resnet50-19c8e357.pth and put it into ./data/
  • if still any problem, please contact me for the wrapped data.
running
  • determine your gpu id and save path (for saving checkpoints and logs), and run
python main.py --gpu your_gpu_id --save_path your_save_path

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.