Fix predict bug on show=True (#452)
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user