I saw your data generation will output patch_indices (mesh indices), and in the code, lots of places used torch.gather based on the indices. Could you please explain why this is needed? Can I just use a simple indexing such as tensor[:, :, y: y + patch_h, x: x + patch_w] instead?
I saw your data generation will output
patch_indices
(mesh indices), and in the code, lots of places used torch.gather based on the indices. Could you please explain why this is needed? Can I just use a simple indexing such astensor[:, :, y: y + patch_h, x: x + patch_w]
instead?