From 454191bd4b8a841c369ca7ff5caf054b2c769503 Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Tue, 17 Jan 2023 22:03:55 +0530 Subject: [PATCH] Fix predict bug on show=True (#452) --- ultralytics/yolo/engine/predictor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultralytics/yolo/engine/predictor.py b/ultralytics/yolo/engine/predictor.py index 546091b..7096794 100644 --- a/ultralytics/yolo/engine/predictor.py +++ b/ultralytics/yolo/engine/predictor.py @@ -190,7 +190,7 @@ class BasePredictor: p, im0 = (path[i], im0s[i]) if self.webcam or self.from_img else (path, im0s) p = Path(p) - if verbose or self.args.save or self.args.save_txt: + if verbose or self.args.save or self.args.save_txt or self.args.show: s += self.write_results(i, results, (p, im, im0)) if self.args.show: