mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-08 18:11:00 +08:00

* 第一次提交 * 补充一处漏翻译 * deleted: docs/en/quantize.md * Update one translation * Update en version * Update one translation in code * Standardize one writing * Standardize one writing * Update some en version * Fix a grammer problem * Update en version for api/vision result * Merge branch 'develop' of https://github.com/charl-u/FastDeploy into develop * Checkout the link in README in vision_results/ to the en documents * Modify a title * Add link to serving/docs/ * Finish translation of demo.md * Update english version of serving/docs/ * Update title of readme * Update some links * Modify a title * Update some links * Update en version of java android README * Modify some titles * Modify some titles * Modify some titles * modify article to document * update some english version of documents in examples * Add english version of documents in examples/visions * Sync to current branch * Add english version of documents in examples * Add english version of documents in examples * Add english version of documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples
46 lines
2.2 KiB
Markdown
46 lines
2.2 KiB
Markdown
English | [简体中文](README_CN.md)
|
||
# YOLOv5Face Ready-to-deploy Model
|
||
|
||
- [YOLOv5Face](https://github.com/deepcam-cn/yolov5-face/commit/4fd1ead)
|
||
- (1)The *.pt provided by the [Official Library](https://github.com/deepcam-cn/yolov5-face/) can be deployed after the [Export ONNX Model](#export-onnx-model) to complete the deployment;
|
||
- (2)As for YOLOv5Face model trained on customized data, please follow the operations guidelines in [Export ONNX Model](#%E5%AF%BC%E5%87%BAONNX%E6%A8%A1%E5%9E%8B) to complete the deployment.
|
||
|
||
## Export ONNX Model
|
||
|
||
Visit [YOLOv5Face](https://github.com/deepcam-cn/yolov5-face) official github repository, follow the guidelines to download the `yolov5s-face.pt` model, and employ `export.py` to get the file in `onnx` format.
|
||
|
||
* Download yolov5face model files
|
||
```
|
||
Link: https://pan.baidu.com/s/1fyzLxZYx7Ja1_PCIWRhxbw Link: eq0q
|
||
https://drive.google.com/file/d/1zxaHeLDyID9YU4-hqK7KNepXIwbTkRIO/view?usp=sharing
|
||
```
|
||
|
||
* Export files in onnx format
|
||
```bash
|
||
PYTHONPATH=. python export.py --weights weights/yolov5s-face.pt --img_size 640 640 --batch_size 1
|
||
```
|
||
* onnx model simplification (optional)
|
||
```bash
|
||
onnxsim yolov5s-face.onnx yolov5s-face.onnx
|
||
```
|
||
|
||
## Download Pre-trained ONNX Model
|
||
|
||
For developers' testing, models exported by YOLOv5Face are provided below. Developers can download and use them directly. (The accuracy of the models in the table is sourced from the official library)
|
||
| Model | Size | Accuracy |
|
||
|:---------------------------------------------------------------- |:----- |:----- |
|
||
| [YOLOv5s-Face](https://bj.bcebos.com/paddlehub/fastdeploy/yolov5s-face.onnx) | 30MB | 94.3 |
|
||
| [YOLOv5s-Face-bak](https://bj.bcebos.com/paddlehub/fastdeploy/yolov5face-s-640x640.bak.onnx) | 30MB | -|
|
||
| [YOLOv5l-Face](https://bj.bcebos.com/paddlehub/fastdeploy/yolov5face-l-640x640.onnx ) | 181MB | 95.8 |
|
||
|
||
|
||
## Detailed Deployment Tutorials
|
||
|
||
- [Python Deployment](python)
|
||
- [C++ Deployment](cpp)
|
||
|
||
|
||
## Release Note
|
||
|
||
- This tutorial and related code are written based on [YOLOv5Face CommitID:4fd1ead](https://github.com/deepcam-cn/yolov5-face/commit/4fd1ead)
|