-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE REQUEST - GRAD CAM FOR YOLO #7306
Comments
#5117
|
Thank you very much :-) |
Oh i am stupid - i just have to read the linked issue #5117 - its all there! |
@AlexeyAB I created a small dataset containing the dog.jpg sample image. ** I After this i set the mentioned config parameter into the net section
After this is started training with - After this - i see a bunch auf augemented images - but none of them contains any kind of heatmap or attention visualization. Thank you very much for your patience - i did some trainings before - for me this is not really straighforward and any help is highly welcome. |
|
@AlexeyAB But i still dont see any attention image generated(i checked dataset backup and darknet folder). Note that i use the no gpu version. I also compiled yolo with opencv support. Am i missing something very obvious - do i need to annotate my sample image(i want to get the attention visualization for the sample image dog.jpg contained in the yolo folder)? |
It supports on GPU. It isn't implemented for CPU. |
@AlexeyAB Can i please summary(my understanding) what i need to do to get the attention image:
AND also
Now i can only guess:
Is this correct? I am not sure about step4 - does not make much sense to me as grad cam used guided backward propagation (i guess this why we need to train) |
|
@AlexeyAB Next thing would be to get attention for only one specific class. |
@holger-prause I'm not sure if I'm understanding it correctly, but is there a working Grad Cam implementation to give me the heat map? |
Hi Alexey, I do what you said and without -flag, the following error raised. "[yolo] params: iou loss: ciou (4), iou_norm: 0.07, obj_norm: 1.00, cls_norm: 1.00, delta_norm: 1.00, scale_x_y: 1.05 (chart_yolov4-obj.png:2416): Gtk-WARNING **: 09:45:31.916: cannot open display: " Do you have any idea what happen? |
Did you try to search for that error? https://github.com/AlexeyAB/darknet/issues?q=cannot+open+display |
I did, then someone suggested that I conclude the code with "-dont show." However, after adding it, the code continues to produce the same error and no CAM plot appears... |
You have to spell it correctly: |
Or you have to use X-forwarding when you SSH into the device. Or you have to run it on a device that has X installed. |
Yes, in my code, it is |
You still typed it wrong in your last comment, so I'm not convinced you're using it correctly. It should be |
Hello,
For debugging a model its a very userfull to show a heatmap of the classactivations.
This is described in paper https://arxiv.org/pdf/1610.02391v1.pdf
This would be very usefull imho.
The text was updated successfully, but these errors were encountered: