Home

Awesome

2D-Human-Parsing

2D-Huamn-Parsing

Requirements

python == 3.8.8, pytorch == 1.7.1, torchvision == 0.8.2, networkx == 2.6.2

Demo Usage

Download the pretrained model here and put it to the pretrained folder, then simply run:

cd inference
bash demo.sh

Testing on custom data

To test on your own data, just refer to the structure of the demo_imgs folder and the inference/demo.sh file respectively for data preparation and model running. Guess it would be very easy to get start by replacing them with your own data / bash script :).

Parsing Index

Below is the person part index (i.e. pixel value) of the parsing result:

PartindexPartindex
background0neck10
hat1scarf11
hair2skirt12
-3face13
sunglass4left arm14
shirt5right arm15
dress6left leg16
coats7right leg17
-8left shoe18
pant9right shoe19

Acknowledgement

The code and pretrained model in this repo are provided through the courtesy of Bowen Wu. Thanks for his effort at making this easy-to-use human parsing codebase.

Citation

If you find this repo helpful and use it in your work/paper, please cite:

@misc{BowenParsing2021,
  author = {Bowen Wu, Fuwei Zhao},
  title = {2D-Human-Parsing},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/fyviezhao/2D-Human-Parsing}}
}