diff --git a/examples/vision/detection/paddledetection/python/infer_faster_rcnn.py b/examples/vision/detection/paddledetection/python/infer_faster_rcnn.py index 1100aa8a602..d75ea2d4db0 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 @@ def build_option(args): # 预测图片检测结果 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 06bfad03c0d..8bf1da7b532 100644 --- a/examples/vision/detection/paddledetection/python/infer_picodet.py +++ b/examples/vision/detection/paddledetection/python/infer_picodet.py @@ -52,7 +52,7 @@ def build_option(args): # 预测图片检测结果 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 029f3dc21d5..d0a286da320 100644 --- a/examples/vision/detection/paddledetection/python/infer_ppyolo.py +++ b/examples/vision/detection/paddledetection/python/infer_ppyolo.py @@ -52,7 +52,7 @@ def build_option(args): # 预测图片检测结果 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 ae533a50937..138bdf1ce43 100644 --- a/examples/vision/detection/paddledetection/python/infer_ppyoloe.py +++ b/examples/vision/detection/paddledetection/python/infer_ppyoloe.py @@ -52,7 +52,7 @@ def build_option(args): # 预测图片检测结果 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 7ea372ff238..27a6fd16b3b 100644 --- a/examples/vision/detection/paddledetection/python/infer_yolov3.py +++ b/examples/vision/detection/paddledetection/python/infer_yolov3.py @@ -53,7 +53,7 @@ def build_option(args): # 预测图片检测结果 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 f65b1d8b122..415e0b69ea1 100644 --- a/examples/vision/detection/paddledetection/python/infer_yolox.py +++ b/examples/vision/detection/paddledetection/python/infer_yolox.py @@ -52,7 +52,7 @@ def build_option(args): # 预测图片检测结果 im = cv2.imread(args.image) -result = model.predict(im) +result = model.predict(im.copy()) print(result) # 预测结果可视化