(bboxes, H, W)
| 208 | |
| 209 | |
| 210 | def visualize_bboxes(bboxes, H, W): |
| 211 | num_boxes = len(bboxes) |
| 212 | for ind, bbox in enumerate(bboxes): |
| 213 | plt.subplot(1, num_boxes, ind + 1) |
| 214 | fg_mask = utils.proportion_to_mask(bbox, H, W) |
| 215 | plt.title(f"transformed bbox ({ind})") |
| 216 | plt.imshow(fg_mask.cpu().numpy()) |
| 217 | plt.show() |
| 218 | |
| 219 | def reset_save_ind(): |
| 220 | global save_ind |
nothing calls this directly
no outgoing calls
no test coverage detected