From 7ed90b82404165baf34261310de53d19ea5fc84c Mon Sep 17 00:00:00 2001
From: YixinKristy <48054808+YixinKristy@users.noreply.github.com>
Date: Mon, 28 Mar 2022 19:09:08 +0800
Subject: [PATCH] Add Attribute English Doc (#5480)
* Create README_en.md
* Update README_en.md
---
deploy/pphuman/docs/attribute.md | 2 +
deploy/pphuman/docs/attribute_en.md | 86 +++++++++++++++++++++++++++++
2 files changed, 88 insertions(+)
create mode 100644 deploy/pphuman/docs/attribute_en.md
diff --git a/deploy/pphuman/docs/attribute.md b/deploy/pphuman/docs/attribute.md
index 839ea23fb..63c72810f 100644
--- a/deploy/pphuman/docs/attribute.md
+++ b/deploy/pphuman/docs/attribute.md
@@ -1,3 +1,5 @@
+[English](attribute_en.md) | 简体中文
+
# PP-Human属性识别模块
行人属性识别在智慧社区,工业巡检,交通监控等方向都具有广泛应用,PP-Human中集成了属性识别模块,属性包含性别、年龄、帽子、眼镜、上衣下衣款式等。我们提供了预训练模型,用户可以直接下载使用。
diff --git a/deploy/pphuman/docs/attribute_en.md b/deploy/pphuman/docs/attribute_en.md
new file mode 100644
index 000000000..38cbc7a78
--- /dev/null
+++ b/deploy/pphuman/docs/attribute_en.md
@@ -0,0 +1,86 @@
+English | [简体中文](attribute.md)
+
+# Attribute Recognition Modules of PP-Human
+
+Pedestrian attribute recognition has been widely used in the intelligent community, industrial, and transportation monitoring. Many attribute recognition modules have been gathered in PP-Human, including gender, age, hats, eyes, clothing and up to 26 attributes in total. Also, the pre-trained models are offered here and users can download and use them directly.
+
+| Task | Algorithm | Precision | Inference Speed(ms) | Download Link |
+|:---------------------|:---------:|:------:|:------:| :---------------------------------------------------------------------------------: |
+| Pedestrian Detection/ Tracking | PP-YOLOE | mAP: 56.3
MOTA: 72.0 | Detection: 28ms
Tracking:33.1ms | [Download Link](https://bj.bcebos.com/v1/paddledet/models/pipeline/mot_ppyoloe_l_36e_pipeline.zip) |
+| Pedestrian Attribute Analysis | StrongBaseline | ma: 94.86 | Per Person 2ms | [Download Link](https://bj.bcebos.com/v1/paddledet/models/pipeline/strongbaseline_r50_30e_pa100k.tar) |
+
+1. The precision of detection/ tracking models is obtained by training and testing on the dataset consist of MOT17, CrowdHuman, HIEVE, and some business data.
+2. The precision of pedestiran attribute analysis is obtained by training and testing on the dataset consist of PA100k, RAPv2, PETA, and some business data.
+3. The inference speed is T4, the speed of using TensorRT FP16.
+
+## Instruction
+
+1. Download the model from the link in the above table, and unzip it to```./output_inference```.
+2. When inputting the image, run the command as follows:
+```python
+python deploy/pphuman/pipeline.py --config deploy/pphuman/config/infer_cfg.yml \
+ --image_file=test_image.jpg \
+ --device=gpu \
+ --enable_attr=True
+```
+3. When inputting the video, run the command as follows:
+```python
+python deploy/pphuman/pipeline.py --config deploy/pphuman/config/infer_cfg.yml \
+ --video_file=test_video.mp4 \
+ --device=gpu \
+ --enable_attr=True
+```
+4. If you want to change the model path, there are two methods:
+
+ - In ```./deploy/pphuman/config/infer_cfg.yml``` you can configurate different model paths. In attribute recognition models, you can modify the configuration in the field of ATTR.
+ - Add `--model_dir` in the command line to change the model path:
+```python
+python deploy/pphuman/pipeline.py --config deploy/pphuman/config/infer_cfg.yml \
+ --video_file=test_video.mp4 \
+ --device=gpu \
+ --enable_attr=True \
+ --model_dir det=ppyoloe/
+```
+
+The test result is:
+
+