Open SaraPiresNobrega opened 3 years ago
@SaraPiresNobrega Hi,
Yes, use this in cfg-file for Grad-CAM:
[net]
adversarial_lr=0.5
attention=1
burn_in=0
learning_rate=0.001
And remove all stopbackward=
lines from cfg-file (if they exist).
And run training command with your pre-trained weights.
For example:
yolov4x-mish.cfg.txt
to yolov4x-mish.cfg
): yolov4x-mish.cfg.txt./darknet detector train F:/MSCOCO/coco_f.data cfg/yolov4x-mish.cfg yolov4x-mish.weights
You will see such results:
Although it looks less beautiful and less understandable, it is closer to the truth than other Grad-CAM implementations.
Thanks for this @AlexeyAB ! Very interesting to look at! Would it be easy to also have the labels displayed on these images?
@AlexeyAB thank you very much ! This approach will be very helpful in my master's degree dissertation ! I thought that there was some way to visualize the GRAD CAM maps using the "test" command but I think that this way I can also do what I want.
Also try the latest commit, I fixed a bug recently.
@AlexeyAB thank you very much !
Hello ! I am developing my master's degree dissertation and I would like to used GRAD CAM or other class activation maps to corroborate the test results of my object detection model (YOLOv4).
Using the information present in https://github.com/AlexeyAB/darknet/issues/5117 it is possible to do that ?