mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-05-02 05:23:38 +08:00
[Doc] Update English version of some documents (#1084)
* Create README_CN.md * Update README.md * Update README_CN.md * Create README_CN.md * Update README.md * Create README_CN.md * Update README.md * Create README_CN.md * Update README.md * Create README_CN.md * Update README.md * Create README_CN.md * Update README.md * Create README_CN.md * Update README.md * Create README_CN.md * Update README.md * Update README.md * Update README_CN.md * Create README_CN.md * Update README.md * Update README.md * Update and rename README_en.md to README_CN.md * Update WebDemo.md * Update and rename WebDemo_en.md to WebDemo_CN.md * Update and rename DEVELOPMENT_cn.md to DEVELOPMENT_CN.md * Update DEVELOPMENT_CN.md * Update DEVELOPMENT.md * Update RNN.md * Update and rename RNN_EN.md to RNN_CN.md * Update README.md * Update and rename README_en.md to README_CN.md * Update README.md * Update and rename README_en.md to README_CN.md * Update README.md * Update README_cn.md * Rename README_cn.md to README_CN.md * Update README.md * Update README_cn.md * Rename README_cn.md to README_CN.md * Update export.md * Update and rename export_EN.md to export_CN.md * Update README.md * Update README.md * Create README_CN.md * Update README.md * Update README.md * Update kunlunxin.md * Update classification_result.md * Update classification_result_EN.md * Rename classification_result_EN.md to classification_result_CN.md * Update detection_result.md * Update and rename detection_result_EN.md to detection_result_CN.md * Update face_alignment_result.md * Update and rename face_alignment_result_EN.md to face_alignment_result_CN.md * Update face_detection_result.md * Update and rename face_detection_result_EN.md to face_detection_result_CN.md * Update face_recognition_result.md * Update and rename face_recognition_result_EN.md to face_recognition_result_CN.md * Update headpose_result.md * Update and rename headpose_result_EN.md to headpose_result_CN.md * Update keypointdetection_result.md * Update and rename keypointdetection_result_EN.md to keypointdetection_result_CN.md * Update matting_result.md * Update and rename matting_result_EN.md to matting_result_CN.md * Update mot_result.md * Update and rename mot_result_EN.md to mot_result_CN.md * Update ocr_result.md * Update and rename ocr_result_EN.md to ocr_result_CN.md * Update segmentation_result.md * Update and rename segmentation_result_EN.md to segmentation_result_CN.md * Update README.md * Update README.md * Update quantize.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md
This commit is contained in:
@@ -1,44 +1,45 @@
|
||||
# SCRFD Python部署示例
|
||||
English | [简体中文](README_CN.md)
|
||||
# SCRFD Python Deployment Example
|
||||
|
||||
在部署前,需确认以下两个步骤
|
||||
Two steps before deployment
|
||||
|
||||
- 1. 软硬件环境满足要求,参考[FastDeploy环境要求](../../../../../../docs/cn/build_and_install/rknpu2.md)
|
||||
- 1. Software and hardware should meet the requirements. Please refer to [FastDeploy Environment Requirements](../../../../../../docs/cn/build_and_install/rknpu2.md)
|
||||
|
||||
本目录下提供`infer.py`快速完成SCRFD在RKNPU上部署的示例。执行如下脚本即可完成
|
||||
This directory provides examples that `infer.py` fast finishes the deployment of SCRFD on RKNPU. The script is as follows
|
||||
|
||||
## 拷贝模型文件
|
||||
请参考[SCRFD模型转换文档](../README.md)转换SCRFD ONNX模型到RKNN模型,再将RKNN模型移动到该目录下。
|
||||
## Copy model files
|
||||
Refer to [SCRFD model conversion](../README.md) to convert SCRFD ONNX model to RKNN model and move it to this directory.
|
||||
|
||||
|
||||
## 运行example
|
||||
拷贝模型文件后,请输入以下命令,运行RKNPU2 Python example
|
||||
## Run example
|
||||
After copying model files, enter the following command to run it: RKNPU2 Python example
|
||||
```bash
|
||||
# 下载部署示例代码
|
||||
# Download the example code for deployment
|
||||
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
||||
cd FastDeploy/examples/vision/facedet/scrfd/rknpu2/python
|
||||
|
||||
# 下载图片
|
||||
# Download images
|
||||
wget https://raw.githubusercontent.com/DefTruth/lite.ai.toolkit/main/examples/lite/resources/test_lite_face_detector_3.jpg
|
||||
|
||||
# 推理
|
||||
# Inference
|
||||
python3 infer.py --model_file ./scrfd_500m_bnkps_shape640x640_rk3588.rknn \
|
||||
--image test_lite_face_detector_3.jpg
|
||||
```
|
||||
|
||||
## 可视化
|
||||
运行完成可视化结果如下图所示
|
||||
## Visualization
|
||||
The visualized result after running is as follows
|
||||
|
||||
<img width="640" src="https://user-images.githubusercontent.com/67993288/184301789-1981d065-208f-4a6b-857c-9a0f9a63e0b1.jpg">
|
||||
|
||||
|
||||
|
||||
## 注意事项
|
||||
RKNPU上对模型的输入要求是使用NHWC格式,且图片归一化操作会在转RKNN模型时,内嵌到模型中,因此我们在使用FastDeploy部署时,
|
||||
需要先调用DisablePermute(C++)或`disable_permute(Python),在预处理阶段禁用归一化以及数据格式的转换。
|
||||
## Note
|
||||
The model needs to be in NHWC format on RKNPU. The normalized image will be embedded in the RKNN model. Therefore, when we deploy with FastDeploy,
|
||||
call DisablePermute(C++) or `disable_permute(Python) to disable normalization and data format conversion during preprocessing.
|
||||
|
||||
## 其它文档
|
||||
## Other Documents
|
||||
|
||||
- [SCRFD 模型介绍](../README.md)
|
||||
- [SCRFD C++部署](../cpp/README.md)
|
||||
- [模型预测结果说明](../../../../../../docs/api/vision_results/README.md)
|
||||
- [转换SCRFD RKNN模型文档](../README.md)
|
||||
- [SCRFD Model Description](../README.md)
|
||||
- [SCRFD C++ Deployment](../cpp/README.md)
|
||||
- [Model Prediction Results](../../../../../../docs/api/vision_results/README.md)
|
||||
- [Convert SCRFD RKNN Model Files](../README.md)
|
||||
|
||||
Reference in New Issue
Block a user