Problem Description
After YOLOv5 added the attention mechanism, Grad CAM reported an error: keyerror:cv3
Cause Analysis:
After adding the attention mechanism, the number of layers of the model changes, print it out, and see which layer is changed.
Original network layer:
Original network layer: After adding the attention mechanism, the network layer changes
solution:
default='model_23_cv3_act'
改为:
default='model_24_cv3_act',