Fix predict bug on show=True (#452)
This commit is contained in:
parent
c6985da9de
commit
454191bd4b
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue