zhoubolei / CAM

Class Activation Mapping
http://cnnlocalization.csail.mit.edu/
MIT License
1.85k stars 467 forks source link

one bounding box for one CAM in the demo code #18

Closed zhangyuygss closed 6 years ago

zhangyuygss commented 7 years ago

In the demo code of generating bounding box for CAM, the code seems to generate multiple boxes for one map, how can I modify the code so that one map only generate one box for localization?

zhoubolei commented 6 years ago

You can just select the largest bbox, or you go through the bbox generation C code to turn it off.

3DMM-ICME2023 commented 6 years ago

@metalbubble Nice works! Could you please share the python code that generate the bounding box according to the heatmap?