alanqrwang/keymorph

How to calculate the average absolute displacement in the test-time performance evaluation?

Closed this issue · 1 comments

I want to know how to calculate the average absolute displacement with using pytorch affine_grid and grid_sample functions.
Thank you

evanmy commented

Hi,

Sorry for the late replay. The absolute displacement is calculated by taking the absolute difference of coordinates within the brain before and after applying the affine transformation. The affine_grid and grid_sample are used to transform the brain itself. You don't need them to calculate displacement of coordinates