Fix predict bug on show=True (#452)

This commit is contained in:
Ayush Chaurasia
2023-01-17 22:03:55 +05:30
committed by GitHub
parent c6985da9de
commit 454191bd4b

View File

@ -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: