mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-07-07 22:04:53 +08:00
Fix predict bug on show=True (#452)
This commit is contained in:
parent
c6985da9de
commit
454191bd4b
@ -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…
x
Reference in New Issue
Block a user