Fix predict bug on show=True (#452)

single_channel
Ayush Chaurasia 2 years ago committed by GitHub
parent c6985da9de
commit 454191bd4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -190,7 +190,7 @@ class BasePredictor:
p, im0 = (path[i], im0s[i]) if self.webcam or self.from_img else (path, im0s) p, im0 = (path[i], im0s[i]) if self.webcam or self.from_img else (path, im0s)
p = Path(p) 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)) s += self.write_results(i, results, (p, im, im0))
if self.args.show: if self.args.show:

Loading…
Cancel
Save