updates
This commit is contained in:
parent
5b0ba6d7b2
commit
7b8a134a0b
|
@ -627,7 +627,7 @@ def plot_images(imgs, targets, paths=None, fname='images.jpg'):
|
|||
boxes[[0, 2]] *= w
|
||||
boxes[[1, 3]] *= h
|
||||
plt.subplot(ns, ns, i + 1).imshow(imgs[i].transpose(1, 2, 0))
|
||||
plt.plot(boxes[[0, 2, 2, 0, 0]], boxes[[1, 1, 3, 3, 1]], 'w.-')
|
||||
plt.plot(boxes[[0, 2, 2, 0, 0]], boxes[[1, 1, 3, 3, 1]], '.-')
|
||||
plt.axis('off')
|
||||
if paths is not None:
|
||||
s = Path(paths[i]).name
|
||||
|
|
Loading…
Reference in New Issue