zhoubolei / CAM

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

CAM for binary class #44

Open shawnthu opened 3 years ago

shawnthu commented 3 years ago

for example, the task is to classify dog or not, and we label dog as class 1. when comes a dog image, class 1 focus on any part except dog; on the contrary, class 0 focus right on dog.

shawnthu commented 3 years ago

I found the reason. Cuz colorspace is BGR in OPENCV !!!. This can be closed...