Comments (7)
@zzff-sys
Checked the model and works fine. Please check it again on colab
from yolov5-gradcam.
@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.
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: What is the problem and how to solve it,Thank you very much
how did you solve this problem?
from yolov5-gradcam.
- Your weights are trained on a custom dataset or you are using pretrained weights of yolov5?
- Secondly, have installed the requirements?
- Finally, have tried colab notebook provided for inferencing?
from yolov5-gradcam.
I have the same problem
from yolov5-gradcam.
Use yolov5 custom training with added attention mechanism
from yolov5-gradcam.
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.
from yolov5-gradcam.
Related Issues (20)
- Label problem HOT 3
- RuntimeError: don't know how to restore data location of torch.HalfStorage (tagged with ) HOT 2
- 可以指定使用某一层的特征图吗?
- get error "google/protobuf/pyext/descriptor.cc:358: bad argument to internal function" HOT 3
- Is it possible to plot the gradcam heatmaps of all prediction results on the same image? HOT 4
- it did not work multiple object of same class.how can I use it for multiple object in the image (same class i.e person )
- what about yolov5l,yolov5x,yolov5s?
- Can't get attribute 'DetectionModel' on <module 'models.yolo' from....> HOT 14
- Error when trying with custom model and dataset
- Attempt to free invalid pointer 0x7f8c95a71d98 HOT 1
- IndexError: list index out of range
- using CUDA, crashes script. HOT 1
- Tensor not match HOT 1
- When I use the weight of the adam optimizer, the heatmap cannot be displayed
- self.model(img, augment=False) does not work HOT 2
- Unable to import name 'Box' from 'deep_utils' HOT 3
- ValueError: not enough values to unpack (expected 3, got 2)
- Can't check recent custom best.pt model for the compatibility issues of pytorch
- When I cycled through multiple images, and for each image, I cycled through multiple layers of the model, I saw an abnormal increase in memory. HOT 1
- RuntimeError: The size of tensor a (80) must match the size of tensor b (1280) at non-singleton dimension 1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov5-gradcam.