Coder Social home page Coder Social logo

superjay1996 / advmix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aiprogrammer/advmix

0.0 0.0 0.0 5.83 MB

Official code for our CVPR 2021 paper: "When Human Pose Estimation Meets Robustness: Adversarial Algorithms and Benchmarks".

License: MIT License

Shell 0.36% C++ 0.03% Python 38.70% Cuda 60.89% Makefile 0.02%

advmix's Introduction

AdvMix

Official code for our CVPR 2021 paper: "When Human Pose Estimation Meets Robustness: Adversarial Algorithms and Benchmarks".

Getting started

  • Installation
# clone this repo
git clone https://github.com/AIprogrammer/AdvMix
# install dependencies
pip install -r requirements
# make nms
cd AdvMix
cd lib
make
# install cocoapi
# COCOAPI=/path/to/clone/cocoapi
git clone https://github.com/cocodataset/cocoapi.git $COCOAPI
cd $COCOAPI/PythonAPI
# Install into global site-packages
make install
# Alternatively, if you do not have permissions or prefer
# not to install the COCO API into global site-packages
python3 setup.py install --user
  • Download the datasets COCO, MPII, and OCHuman. Put them under "./data". The directory structure follows HRNet.

Benchmarking

Contruct benchmarking datasets

sh scripts/make_datasets.sh

Visualization examples

benchmark_dataset

Benchmark results

benchmark_results

Note: There may be small gap between the results by Evaluation and results in our paper due to randomness of operations in package 'imagecorruptions'.

AdvMix

AdvMix

Training

  • MPII
sh scripts/train.sh mpii
  • COCO
sh scripts/train.sh coco

Evaluation

sh scripts/test.sh coco
sh scripts/test.sh mpii

Quantitative results

Method Arch Input size AP* mPC rPC
Standard ResNet_50 256x192 70.4 47.8 67.9
AdvMix ResNet_50 256x192 70.1 50.1 71.5
Standard ResNet_101 256x192 71.4 49.6 69.5
AdvMix ResNet_101 256x192 71.3 52.3 73.3
Standard ResNet_152 256x192 72.0 50.9 70.7
AdvMix ResNet_152 256x192 72.3 53.2 73.6
Standard HRNet_W32 256x192 74.4 53.0 71.3
AdvMix HRNet_W32 256x192 74.7 55.5 74.3
Standard HRNet_W48 256x192 75.1 53.7 71.6
AdvMix HRNet_W48 256x192 75.4 57.1 75.7
Standard HrHRNet_W32 512x512 67.1 39.9 59.4
AdvMix HrHRNet_W32 512x512 68.3 45.4 66.5

Comparisons between standard training and AdvMix on COCO-C. For top-down approaches, results are obtained with detected bounding boxes of HRNet. We see that mPC and rPC are greatly improved, whilst clean performance AP* can be preserved

Visualization results

AdvMix Qualitative comparisons between HRNet without and with AdvMix. For each image triplet, the images from left to right are ground truth, predicted results of Standard HRNet-W32, and predicted results of HRNet-W32 with AdvMix.

Citations

If you find our work useful in your research, please consider citing:

@article{wang2021human,
  title={When Human Pose Estimation Meets Robustness: Adversarial Algorithms and Benchmarks},
  author={Wang, Jiahang and Jin, Sheng and Liu, Wentao and Liu, Weizhong and Qian, Chen and Luo, Ping},
  journal={arXiv preprint arXiv:2105.06152},
  year={2021}
}

License

Our research code is released under the MIT license. See LICENSE for details.

Acknowledgments

Thanks for open-source code HRNet.

advmix's People

Contributors

jin-s13 avatar aiprogrammer avatar annopackage 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.