rigvedrs / YOLO-V8-CAM

Wanna know what your model sees? Here's a package for applying EigenCAM on the new YOLO V8 model
MIT License
100 stars 17 forks source link

Inquiry on Object Detection Related Error #8

Closed geniecity closed 6 months ago

geniecity commented 7 months ago

image

"Hello, I am trying to explain my model, which is built on yolov8 based on your model, through CAM. The issue is that while the detection of classes on the image is accurate, the heatmap is generated on parts of the image that are completely unrelated to the class. How can I resolve this issue?"

rigvedrs commented 6 months ago

This happens when you run the code for the first time. You will have to re-run the cells to make it provide the accurate output.

shail-git commented 2 months ago

I am getting similar error, I dont know what is going wrong. I have rerun it multiple times. Also, I dont understand why we have to run it multiple times. For example in below it highlights everything but players and ball. I have tried using different colormaps in cv2 but the result is same.

image