mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-25 18:13:21 +08:00
[Backend] Add OCR、Seg、 KeypointDetection、Matting、 ernie-3.0 and adaface models for XPU Deploy (#960)
* [FlyCV] Bump up FlyCV -> official release 1.0.0 * add seg models for XPU * add ocr model for XPU * add matting * add matting python * fix infer.cc * add keypointdetection support for XPU * Add adaface support for XPU * add ernie-3.0 * fix doc Co-authored-by: DefTruth <qiustudent_r@163.com> Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
This commit is contained in:
Regular → Executable
+8
@@ -45,6 +45,14 @@ python infer.py --model mobilefacenet_adaface/mobilefacenet_adaface.pdmodel \
|
||||
--face_negative test_lite_focal_arcface_2.JPG \
|
||||
--device gpu \
|
||||
--use_trt True
|
||||
|
||||
# XPU推理
|
||||
python infer.py --model mobilefacenet_adaface/mobilefacenet_adaface.pdmodel \
|
||||
--params_file mobilefacenet_adaface/mobilefacenet_adaface.pdiparams \
|
||||
--face test_lite_focal_arcface_0.JPG \
|
||||
--face_positive test_lite_focal_arcface_1.JPG \
|
||||
--face_negative test_lite_focal_arcface_2.JPG \
|
||||
--device xpu
|
||||
```
|
||||
|
||||
运行完成可视化结果如下图所示
|
||||
|
||||
Reference in New Issue
Block a user