GithubHelp home page GithubHelp logo

hiennguyen9874 / person-attribute-recognition Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 22.61 MB

Person attribute recognition

Python 12.56% Jupyter Notebook 87.42% Dockerfile 0.02%
attribute-recognition peta baseline person-attribute-recognition

person-attribute-recognition's Introduction

Person Attribute Recognition

Install

  • pip3 install -r requirements.txt

Dataset

  • Manual download from github.com/dangweili/pedestrian-attribute-recognition-pytorch and extract dataset.
    • PETA
      data_dir/
      |--peta/
      |  |--images/
      |  |  |--00001.png
      |  |  |--00002.png
      |  |  |--...
      |  |--PETA.mat
      
    • PA-100K
      data_dir/
      |--pa_100k/
      |  |--images/
      |  |  |--0000001.png
      |  |  |--0000002.png
      |  |  |--...
      |  |--annotation.mat
      
      data_dir in config file.

Run

  • python3 train.py --config <path/to/config_file.yml>

Config

Result

Peta dataset

backbone bn after linear Head Loss mA Accuracy Precision Recall F1-Score
resnet50 BNHead CEL_Sigmoid 84.79 80.07 88.28 86.24 86.98
resnet50 BNHead BCEWithLogitsLoss 79.47 76.33 87.22 82.38 84.33
resnet50_ibn_a_nl BNHead CEL_Sigmoid 83.49 79.60 88.89 85.14 86.65
osnet ReductionHead CEL_Sigmoid 77.67 73.44 84.17 80.60 81.97
osnet ReductionHead BCEWithLogitsLoss 71.00 67.49 85.60 72.94 77.94
osnet BNHead CEL_Sigmoid 77.89 72.57 83.68 79.96 81.32
resnet50 BNHead CEL_Sigmoid 82.67 78.61 88.53 84.17 85.91
resnet50_ibn_a_nl BNHead CEL_Sigmoid 82.24 78.57 88.48 84.20 85.91
osnet ReductionHead CEL_Sigmoid 77.93 73.00 83.82 80.65 81.81
osnet BNHead CEL_Sigmoid 77.72 73.04 84.65 79.82 81.68

PA-100K

backbone bn after linear Head Loss mA Accuracy Precision Recall F1-Score
resnet50 BNHead CEL_Sigmoid 79.50 78.89 88.17 86.28 86.80

Deploy model with torchserve

Acknowledgements

person-attribute-recognition's People

Contributors

dependabot[bot] avatar hiennguyen9874 avatar hoangvan10it avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

person-attribute-recognition's Issues

trainer.py

你好,在trainer.py 导包的时候from losses import build_losses,我好像没有看到build_losses,可以帮忙看看吗,谢谢

about attention

Please, can you share a little bit about how to use your attention code? Are there any configurations we should use?

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.