Git Product home page Git Product logo

dcds's Introduction

Deep Constrained Dominant Sets for Person Re-Identification (DCDS)

Pytorch Implementation for our ICCV2019 work, Deep Constrained Dominant Sets for Person Re-Identification. This implementation is based on open-reid and kpm_rw_person_reid.

Requirements

- cd DCDS
- install setup.py

For single dataset (SD) setup we use Market1501, CUHK03, and DukeMTMC datasets.

Download and extract these datasets and do,

cd examples/
mkdir data
cd data/
mkdir market1501
cd market1501
mkdir raw/
mv dir_of_market1501_zip raw/

Repeate this for CUHK03 and Dukemtmc.

Example

Training

python examples/main.py -d market1501 -b 64 -a resnet101 --features 2048 --lr 0.0001 --ss 10 --epochs 100 --dropout 0 --weight-decay 0 --logs-dir examples/logs/market1501-final-model
python examples/main.py -d dukemtmc -b 64 -a resnet101 --features 2048 --lr 0.0001 --ss 10 --epochs 100 --dropout 0 --weight-decay 0 --logs-dir examples/logs/dukemtmc-final-model
  • Same for CUHK03

Testing

Download the trained models

python examples/main.py -d market1501 -b 64 -a resnet101 --features 2048 --evaluate --evaluate-from examples/logs/market1501-final-model/model_best.pth.tar

python examples/main.py -d dukemtmc -b 64 -a resnet101 --features 2048 --evaluate --evaluate-from examples/logs/dukemtmc-final-model/model_best.pth.pth.tar

Results, trained and tested on single dataset, SD setup.

Market-1501 CUHK03 DukeMTMC-reID
mAP(%)rank-1rank-5 mAP(%)rank-1rank-5 mAP(%)rank-1rank-5
DCDS (SD) 81.592.997.4 90.793.399.1 70.383.690.4

Citation

@InProceedings{Alemu_2019_ICCV,
author = {Alemu, Leulseged Tesfaye and Pelillo, Marcello and Shah, Mubarak},
title = {Deep Constrained Dominant Sets for Person Re-Identification},
booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
month = {October},
year = {2019}
}

dcds's People

Contributors

leule 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

Watchers

 avatar  avatar  avatar  avatar

dcds's Issues

ValueError: num_val exceeds total identities 0*

I am using the google colab to test DCDS example ,

initially I got Some modular missing issues, but after adding couple of modules from open reid repo , issues were fixed, Currently I get this error ValueError: num_val exceeds total identities 0. I have added print lines into some files for debugging error. Still I am unable to resolve it ,

1
3
Capture
4

Getting error saying can not import evaluation metrics.

Traceback (most recent call last):
File "examples/main.py", line 17, in
from reid import datasets
File "./reid/init.py", line 4, in
from . import evaluation_metrics
ImportError: cannot import name 'evaluation_metrics'

oct16_2019 not found

from reid_oct16_2019 import datasets
ImportError: No module named reid_oct16_2019

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.