mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-18 22:44:39 +08:00
Add detection and segmentation examples for Ascend deployment
This commit is contained in:
@@ -22,6 +22,8 @@ python infer_paddle_model.py --model yolov6s_infer --image 000000014439.jpg --d
|
||||
python infer_paddle_model.py --model yolov6s_infer --image 000000014439.jpg --device gpu
|
||||
# 昆仑芯XPU推理
|
||||
python infer_paddle_model.py --model yolov6s_infer --image 000000014439.jpg --device kunlunxin
|
||||
# 华为昇腾推理
|
||||
python infer_paddle_model.py --model yolov6s_infer --image 000000014439.jpg --device ascend
|
||||
```
|
||||
如果想要验证ONNX模型的推理,可以参考如下命令:
|
||||
```bash
|
||||
|
@@ -28,6 +28,9 @@ def build_option(args):
|
||||
if args.device.lower() == "kunlunxin":
|
||||
option.use_kunlunxin()
|
||||
|
||||
if args.device.lower() == "ascend":
|
||||
option.use_ascend()
|
||||
|
||||
return option
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user