(batch)
| 488 | return img, coord, is_tile_kept |
| 489 | |
| 490 | def collate_features(batch): |
| 491 | # Item 2 is the boolean value from tile filtering. |
| 492 | img = torch.cat([item[0] for item in batch if item[2]], dim=0) |
| 493 | coords = np.vstack([item[1] for item in batch if item[2]]) |
| 494 | return [img, coords] |
| 495 | |
| 496 | def mergedpatch_gen(features, coords, dist_threshold=4, corr_threshold = 0.6): |
| 497 |
nothing calls this directly
no outgoing calls
no test coverage detected