From add15b0ea85c10a77af7e9bb91f49cef6a778b59 Mon Sep 17 00:00:00 2001 From: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Date: Thu, 19 Dec 2024 03:00:00 +0800 Subject: [PATCH] Fix RGB to BGR conversion in TFLite example (#18305) Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Co-authored-by: Glenn Jocher --- examples/YOLOv8-TFLite-Python/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/YOLOv8-TFLite-Python/main.py b/examples/YOLOv8-TFLite-Python/main.py index 1fadd86b..2c85faa8 100644 --- a/examples/YOLOv8-TFLite-Python/main.py +++ b/examples/YOLOv8-TFLite-Python/main.py @@ -215,7 +215,7 @@ if __name__ == "__main__": args = parser.parse_args() detector = YOLOv8TFLite(args.model, args.conf, args.iou, args.metadata) - result = detector.detect(str(ASSETS / "bus.jpg"))[..., ::-1] + result = detector.detect(str(ASSETS / "bus.jpg")) cv2.imshow("Output", result) cv2.waitKey(0)