mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
Revert "[Backend] Add KunlunXin XPU deploy support" (#893)
Revert "[Backend] Add KunlunXin XPU deploy support (#747)"
This reverts commit 5be839b322
.
This commit is contained in:
11
examples/vision/detection/yolov5/python/README.md
Executable file → Normal file
11
examples/vision/detection/yolov5/python/README.md
Executable file → Normal file
@@ -13,18 +13,15 @@ git clone https://github.com/PaddlePaddle/FastDeploy.git
|
||||
cd examples/vision/detection/yolov5/python/
|
||||
|
||||
#下载yolov5模型文件和测试图片
|
||||
wget https://bj.bcebos.com/paddlehub/fastdeploy/yolov5s_infer.tar
|
||||
tar -xf yolov5s_infer.tar
|
||||
wget https://bj.bcebos.com/paddlehub/fastdeploy/yolov5s.onnx
|
||||
wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000014439.jpg
|
||||
|
||||
# CPU推理
|
||||
python infer.py --model yolov5s_infer --image 000000014439.jpg --device cpu
|
||||
python infer.py --model yolov5s.onnx --image 000000014439.jpg --device cpu
|
||||
# GPU推理
|
||||
python infer.py --model yolov5s_infer --image 000000014439.jpg --device gpu
|
||||
python infer.py --model yolov5s.onnx --image 000000014439.jpg --device gpu
|
||||
# GPU上使用TensorRT推理
|
||||
python infer.py --model yolov5s_infer --image 000000014439.jpg --device gpu --use_trt True
|
||||
# XPU推理
|
||||
python infer.py --model yolov5s_infer --image 000000014439.jpg --device xpu
|
||||
python infer.py --model yolov5s.onnx --image 000000014439.jpg --device gpu --use_trt True
|
||||
```
|
||||
|
||||
运行完成可视化结果如下图所示
|
||||
|
Reference in New Issue
Block a user