Coder Social home page Coder Social logo

simonre / pedestrian-attribute-recognition-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dangweili/pedestrian-attribute-recognition-pytorch

0.0 1.0 0.0 74 KB

A simple baseline for pedestrian attribute recognition in surveillance scenarios

Python 100.00%

pedestrian-attribute-recognition-pytorch's Introduction

Implement of Deep Multi-attribute Recognition model under ResNet50 backbone network

Preparation

Prerequisite: Python 2.7 and Pytorch 0.3.1

  1. Install Pytorch

  2. Download and prepare the dataset as follow:

    a. PETA Baidu Yun, passwd: 5vep, or Google Drive.

    ./dataset/peta/images/*.png
    ./dataset/peta/PETA.mat
    ./dataset/peta/README
    
    python script/dataset/transform_peta.py 
    

    b. RAP Google Drive.

    ./dataset/rap/RAP_dataset/*.png
    ./dataset/rap/RAP_annotation/RAP_annotation.mat
    
    python script/dataset/transform_rap.py
    

    c. PA100K Links

    ./dataset/pa100k/data/*.png
    ./dataset/pa100k/annotation.mat
    
    python script/dataset/transform_pa100k.py 
    

    d. RAP(v2) Links.

    ./dataset/rap2/RAP_dataset/*.png
    ./dataset/rap2/RAP_annotation/RAP_annotation.mat
    
    python script/dataset/transform_rap2.py
    

Train the model

sh script/experiment/train.sh

Test the model

sh script/experiment/test.sh

Demo

python script/experiment/demo.py

Citation

Please cite this paper in your publications if it helps your research:
@inproceedings{li2015deepmar,
    author = {Dangwei Li and Xiaotang Chen and Kaiqi Huang},
    title = {Multi-attribute Learning for Pedestrian Attribute Recognition in Surveillance Scenarios},
    booktitle = {ACPR},
    pages={111--115},
    year = {2015}
}

Thanks

Partial codes are based on the repository from Houjing Huang.

The code should only be used for academic research.

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.