cvlab-stonybrook / LearningToCountEverything

MIT License
357 stars 72 forks source link

locate each object which have been counted #26

Closed lincong666 closed 2 years ago

lincong666 commented 2 years ago

Hi author,thank you for your awesome job.how to locate the object according the density map?

Viresh-R commented 2 years ago

Hi, FamNet wasn't trained for localization task, but for density map prediction task. However, a simple way to obtain the locations of the objects from the predicted density map would be to first find local maximas in the density map, place a bounding box of the same size as the average exemplar size over the local maximas, and do non maximal suppression. For more accurate localization, take a look at some works on localization: https://arxiv.org/abs/1808.01050