(self, full_imgs, sampling_grid)
| 245 | self.grid = points.unsqueeze(dim=0) |
| 246 | |
| 247 | def _sample_padded(self, full_imgs, sampling_grid): |
| 248 | """""" |
| 249 | # Get the sub-images using bilinear interpolation |
| 250 | return F.grid_sample(full_imgs, sampling_grid, align_corners=True) |
| 251 | |
| 252 | def __call__(self, full_imgs, center, bbox_size): |
| 253 | """Crops the HD images using the provided bounding boxes. |