mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Update
This commit is contained in:
parent
63f319ac3d
commit
73db0effec
@ -242,6 +242,7 @@ def imshow(img, labels=None, pred=None, names=None, f=Path('images.jpg')):
|
|||||||
print('True: ', ' '.join(f'{names[i]:3s}' for i in labels))
|
print('True: ', ' '.join(f'{names[i]:3s}' for i in labels))
|
||||||
if pred is not None:
|
if pred is not None:
|
||||||
print('Predicted:', ' '.join(f'{names[i]:3s}' for i in pred))
|
print('Predicted:', ' '.join(f'{names[i]:3s}' for i in pred))
|
||||||
|
print(f'imshow() results saved to {f}')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user