preicted boxes in dashed green
This commit is contained in:
parent
4373b7c453
commit
72c58af7e4
@ -26,7 +26,7 @@ def plot_inference(img_tensor, output, target, detection_threshold):
|
|||||||
Rectangle((x0, y0),
|
Rectangle((x0, y0),
|
||||||
(x1 - x0),
|
(x1 - x0),
|
||||||
(y1 - y0),
|
(y1 - y0),
|
||||||
fill=False, color="tab:green", linewidth=2, zorder=10)
|
fill=False, color="tab:green", linestyle='--', linewidth=2, zorder=10)
|
||||||
)
|
)
|
||||||
for (x0, y0, x1, y1), l in zip(target['boxes'], target['labels']):
|
for (x0, y0, x1, y1), l in zip(target['boxes'], target['labels']):
|
||||||
ax.add_patch(
|
ax.add_patch(
|
||||||
|
Loading…
Reference in New Issue
Block a user