(x, bbox_list)
| 163 | |
| 164 | |
| 165 | def local_patch(x, bbox_list): |
| 166 | assert len(x.size()) == 4 |
| 167 | patches = [] |
| 168 | for i, bbox in enumerate(bbox_list): |
| 169 | t, l, h, w = bbox |
| 170 | patches.append(x[i, :, t:t + h, l:l + w]) |
| 171 | return torch.stack(patches, dim=0) |
| 172 | |
| 173 | |
| 174 | def mask_image(x, bboxes, config): |
nothing calls this directly
no outgoing calls
no test coverage detected