mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
fix cv2.error when use PIL.Image.Image (#241)
This commit is contained in:
parent
ea93d4f379
commit
3a53d91ec8
@ -345,7 +345,7 @@ class BasePredictor:
|
|||||||
if self.args.show:
|
if self.args.show:
|
||||||
self.show(str(p))
|
self.show(str(p))
|
||||||
if self.args.save:
|
if self.args.save:
|
||||||
self.save_predicted_images(str(self.save_dir / p.name), frame)
|
self.save_predicted_images(str(self.save_dir / (p.name or "tmp.jpg")), frame)
|
||||||
|
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user