Giter VIP home page Giter VIP logo

Comments (7)

pooya-mohammadi avatar pooya-mohammadi commented on September 26, 2024

@zzff-sys
Checked the model and works fine. Please check it again on colab

from yolov5-gradcam.

jccmoing-bit avatar jccmoing-bit commented on September 26, 2024

@zzff-sys Checked the model and works fine. Please check it again on colab

I added an attention mechanism to the model and added related modules to common.py, but I also got an error in the end: KeyError: 'cv3'

from yolov5-gradcam.

jccmoing-bit avatar jccmoing-bit commented on September 26, 2024

My training weights were trained by adding the attention mechanism to YOLOv5's network, and there was an error when I used the code to export the thermal map: image What is the problem and how to solve it,Thank you very much

how did you solve this problem?

from yolov5-gradcam.

pooya-mohammadi avatar pooya-mohammadi commented on September 26, 2024

@jccmoing-bit

  1. Your weights are trained on a custom dataset or you are using pretrained weights of yolov5?
  2. Secondly, have installed the requirements?
  3. Finally, have tried colab notebook provided for inferencing?

from yolov5-gradcam.

dayu178 avatar dayu178 commented on September 26, 2024

I have the same problem

from yolov5-gradcam.

dayu178 avatar dayu178 commented on September 26, 2024

Use yolov5 custom training with added attention mechanism

from yolov5-gradcam.

SolitudeWX avatar SolitudeWX commented on September 26, 2024

I have found the reason.
See these lines in main.py:
parser.add_argument('--target-layer', type=str, default='model_23_cv3_act', help='The layer hierarchical address to which gradcam will applied,' ' the names should be separated by underline')
means what layer you want to find. The names after default should be the layer name in your model, but to see the name of layer, you should debug the code.
1658981751047

from yolov5-gradcam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.