diff --git a/examples/vision/detection/paddledetection/python/infer_faster_rcnn.py b/examples/vision/detection/paddledetection/python/infer_faster_rcnn.py index 1100aa8a6..d75ea2d4d 100644 --- a/examples/vision/detection/paddledetection/python/infer_faster_rcnn.py +++ b/examples/vision/detection/paddledetection/python/infer_faster_rcnn.py @@ -52,7 +52,7 @@ model = fd.vision.detection.FasterRCNN( # 预测图片检测结果 im = cv2.imread(args.image) -result = model.predict(im) +result = model.predict(im.copy()) print(result) # 预测结果可视化 diff --git a/examples/vision/detection/paddledetection/python/infer_picodet.py b/examples/vision/detection/paddledetection/python/infer_picodet.py index 06bfad03c..8bf1da7b5 100644 --- a/examples/vision/detection/paddledetection/python/infer_picodet.py +++ b/examples/vision/detection/paddledetection/python/infer_picodet.py @@ -52,7 +52,7 @@ model = fd.vision.detection.PicoDet( # 预测图片检测结果 im = cv2.imread(args.image) -result = model.predict(im) +result = model.predict(im.copy()) print(result) # 预测结果可视化 diff --git a/examples/vision/detection/paddledetection/python/infer_ppyolo.py b/examples/vision/detection/paddledetection/python/infer_ppyolo.py index 029f3dc21..d0a286da3 100644 --- a/examples/vision/detection/paddledetection/python/infer_ppyolo.py +++ b/examples/vision/detection/paddledetection/python/infer_ppyolo.py @@ -52,7 +52,7 @@ model = fd.vision.detection.PPYOLO( # 预测图片检测结果 im = cv2.imread(args.image) -result = model.predict(im) +result = model.predict(im.copy()) print(result) # 预测结果可视化 diff --git a/examples/vision/detection/paddledetection/python/infer_ppyoloe.py b/examples/vision/detection/paddledetection/python/infer_ppyoloe.py index ae533a509..138bdf1ce 100644 --- a/examples/vision/detection/paddledetection/python/infer_ppyoloe.py +++ b/examples/vision/detection/paddledetection/python/infer_ppyoloe.py @@ -52,7 +52,7 @@ model = fd.vision.detection.PPYOLOE( # 预测图片检测结果 im = cv2.imread(args.image) -result = model.predict(im) +result = model.predict(im.copy()) print(result) # 预测结果可视化 diff --git a/examples/vision/detection/paddledetection/python/infer_yolov3.py b/examples/vision/detection/paddledetection/python/infer_yolov3.py index 7ea372ff2..27a6fd16b 100644 --- a/examples/vision/detection/paddledetection/python/infer_yolov3.py +++ b/examples/vision/detection/paddledetection/python/infer_yolov3.py @@ -53,7 +53,7 @@ model = fd.vision.detection.YOLOv3( # 预测图片检测结果 im = cv2.imread(args.image) -result = model.predict(im) +result = model.predict(im.copy()) print(result) # 预测结果可视化 diff --git a/examples/vision/detection/paddledetection/python/infer_yolox.py b/examples/vision/detection/paddledetection/python/infer_yolox.py index f65b1d8b1..415e0b69e 100644 --- a/examples/vision/detection/paddledetection/python/infer_yolox.py +++ b/examples/vision/detection/paddledetection/python/infer_yolox.py @@ -52,7 +52,7 @@ model = fd.vision.detection.PaddleYOLOX( # 预测图片检测结果 im = cv2.imread(args.image) -result = model.predict(im) +result = model.predict(im.copy()) print(result) # 预测结果可视化