mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
修复做BGR2RGB转换时,直接在原图上进行修改的bug (#294)
* 修复做BGR2RGB转换时,直接在原图上进行修改的bug * 修复使用cuda进行推理时,输入出错的问题 * 修复使用cuda进行推理时,输入出错的问题 * 修复使用cuda进行推理时,输入出错的问题 * 修复使用cuda进行推理时,输入出错的问题 * 修复使用cuda进行推理时,输入出错的问题 * 修复cpp demo 错误的问题 Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
@@ -100,12 +100,12 @@ wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/0000000
|
||||
```
|
||||
|
||||
* Test inference results
|
||||
|
||||
|
||||
```python
|
||||
# For deployment of GPU/TensorRT, please refer to examples/vision/detection/paddledetection/python
|
||||
import cv2
|
||||
import fastdeploy.vision as vision
|
||||
|
||||
|
||||
|
||||
model = vision.detection.PPYOLOE("ppyoloe_crn_l_300e_coco/model.pdmodel",
|
||||
"ppyoloe_crn_l_300e_coco/model.pdiparams",
|
||||
@@ -148,16 +148,17 @@ int main(int argc, char* argv[]) {
|
||||
auto im = cv::imread("000000014439.jpg");
|
||||
|
||||
vision::DetectionResult res;
|
||||
model.Predict(&im, &res)
|
||||
model.Predict(&im, &res);
|
||||
|
||||
auto vis_im = vision::Visualize::VisDetection(im, res, 0.5);
|
||||
cv::imwrite("vis_image.jpg", vis_im);
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
### For more deployment models, please refer to [Vision Model Deployment Examples](examples/vision) .
|
||||
|
||||
|
||||
|
||||
|
||||
### Supported Server-Side Model List🔥🔥🔥
|
||||
|
||||
|
||||
Reference in New Issue
Block a user