pytorch-grad-cam icon indicating copy to clipboard operation
pytorch-grad-cam copied to clipboard

Are there plans to support YOLOX?

Open successren opened this issue 2 years ago • 12 comments

Are there plans to support YOLOX?I tried YOLOX myself and it didn't seem to work very well

successren avatar Jun 08 '22 08:06 successren

Not planning, but I think it should be similar to the ideas in the YOLO/Faster RCNN tutorials.

PRs for notebooks or other examples with this are most welcome.

jacobgil avatar Jun 14 '22 18:06 jacobgil

Thanks for your reply. I have a question, why is it better to choose model.model.model.model[-2] 23rd layer than model.model.model.model[-5] 20th layer in yolov5s? In fact, they are both pre-layer of Detection.

  • result of target_layers = [model.model.model.model[23]]

grad-cam-res

  • result of target_layers=[model.model.model.model[20]]

grad-cam-res

If I use YOLOX, do you have any suggestions for selecting target_layers? Thank you very much.

successren avatar Jun 15 '22 13:06 successren

Hello friend, have you successfully applied thisHello friend, have you successfully applied this on yolox? If so, can you communicate with me? I am also doing relevant research.

qixitan avatar Jun 16 '22 12:06 qixitan

thisHello

not yet,I have tried some target layers,but only model.backbone.dark4 looks a little bit like right. I'm not sure that's right.

successren avatar Jun 17 '22 08:06 successren

OK, thank you for your response,and i find someothers,like C3_n4 in backbone, cls_conv[2], obj_conv[2] and reg_preds[2] in head may make a seemingly correct result. in addition, I found that only EigenCAM can be directly applied to YOLOX,maybe I made a mistake。

qixitan avatar Jun 18 '22 09:06 qixitan

OK, thank you for your response,and i find someothers,like C3_n4 in backbone, cls_conv[2], obj_conv[2] and reg_preds[2] in head may make a seemingly correct result. in addition, I found that only EigenCAM can be directly applied to YOLOX,maybe I made a mistake。

hello friend. have u ever successfully applied this into yolox?

Thatboy7 avatar Aug 10 '22 08:08 Thatboy7

OK, thank you for your response,and i find someothers,like C3_n4 in backbone, cls_conv[2], obj_conv[2] and reg_preds[2] in head may make a seemingly correct result. in addition, I found that only EigenCAM can be directly applied to YOLOX,maybe I made a mistake。

hello friend. have u ever successfully applied this into yolox?how do it?

Varybase avatar Aug 25 '22 15:08 Varybase

OK, thank you for your response,and i find someothers,like C3_n4 in backbone, cls_conv[2], obj_conv[2] and reg_preds[2] in head may make a seemingly correct result. in addition, I found that only EigenCAM can be directly applied to YOLOX,maybe I made a mistake。

Hello! I also found this problem. I think it should be because Yolox's head is decoupled. Can you tell me your latest progress. Thank you.

Kyle-fang avatar Oct 20 '22 06:10 Kyle-fang

OK, thank you for your response,and i find someothers,like C3_n4 in backbone, cls_conv[2], obj_conv[2] and reg_preds[2] in head may make a seemingly correct result. in addition, I found that only EigenCAM can be directly applied to YOLOX,maybe I made a mistake。

Hello! I also found this problem. I think it should be because Yolox's head is decoupled. Can you tell me your latest progress. Thank you.

target_layers = [model.backbone.backbone.dark5] target_layers = [model.head.obj_preds[2], model.head.reg_preds[2], model.head.cls_preds[2]] I set it up like this,

qixitan avatar Oct 31 '22 03:10 qixitan

OK, thank you for your response,and i find someothers,like C3_n4 in backbone, cls_conv[2], obj_conv[2] and reg_preds[2] in head may make a seemingly correct result. in addition, I found that only EigenCAM can be directly applied to YOLOX,maybe I made a mistake。

Hello! I also found this problem. I think it should be because Yolox's head is decoupled. Can you tell me your latest progress. Thank you.

target_layers = [model.backbone.backbone.dark5] target_layers = [model.head.obj_preds[2], model.head.reg_preds[2], model.head.cls_preds[2]] I set it up like this,

Thank you for your reply! The target layers I selected are the same as yours, but when I output the thermal map, I found that the target area is not highlighted but the background area is highlighted. Do you know why? Look forward to your reply!!!

Kyle-fang avatar Oct 31 '22 05:10 Kyle-fang

OK, thank you for your response,and i find someothers,like C3_n4 in backbone, cls_conv[2], obj_conv[2] and reg_preds[2] in head may make a seemingly correct result. in addition, I found that only EigenCAM can be directly applied to YOLOX,maybe I made a mistake。

Hello! I also found this problem. I think it should be because Yolox's head is decoupled. Can you tell me your latest progress. Thank you.

target_layers = [model.backbone.backbone.dark5] target_layers = [model.head.obj_preds[2], model.head.reg_preds[2], model.head.cls_preds[2]] I set it up like this,

Thank you for your reply! The target layers I selected are the same as yours, but when I output the thermal map, I found that the target area is not highlighted but the background area is highlighted. Do you know why? Look forward to your reply!!!

Maybe you can try a different setup, mine turned out like this images

qixitan avatar Oct 31 '22 10:10 qixitan

thisHello

not yet,I have tried some target layers,but only model.backbone.dark4 looks a little bit like right. I'm not sure that's right.

Hello, I found the same situation in my experiment and couldn't get satisfactory results after changing multiple settings. Could you please tell me how you solved it?

lz06787 avatar Nov 05 '22 12:11 lz06787