vcg-uvic / sportsfield_release

Code release for WACV 2020, "Optimizing Through Learned Errors for Accurate Sports Field Registration"
Other
67 stars 25 forks source link

IoU metric implementation #12

Open fmagera opened 1 year ago

fmagera commented 1 year ago

Hi, I don't understand the code for the evaluation on the world cup dataset. There seems to be a discretization of the soccer pitch shape : https://github.com/vcg-uvic/sportsfield_release/blob/master/utils/metrics.py#L94 and thresholding then :
https://github.com/vcg-uvic/sportsfield_release/blob/master/utils/metrics.py#L102 Is it an approximation of the IoU or is there something that I am missing ? Thanks for your help :)

jiangwei221 commented 1 year ago

Yes, this is kind of a approximation if IoU using rasterization(simple resample). We didn't go with the geometric way, for example using Shapely.