Closed david-wb closed 4 years ago
https://github.com/swook/GazeML/blob/5466f59be70583e7e8c343bda91c8df539aef13a/src/models/elg.py#L272
Mind explaining the rationale for this function? What is the effect of creating the meshgrids, flattening them and multiplying them by the output of the softmax for each heatmap?
I just realized this is a 2d soft argmax. I wonder if it would work better to calculate the center of mass or centroid.
https://github.com/swook/GazeML/blob/5466f59be70583e7e8c343bda91c8df539aef13a/src/models/elg.py#L272
Mind explaining the rationale for this function? What is the effect of creating the meshgrids, flattening them and multiplying them by the output of the softmax for each heatmap?