-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature map visualization #3798
Labels
enhancement
New feature or request
Comments
Now the code can read. |
@Zigars thanks for the feature suggestion and your example code. Can you please submit a PR with your implementation? We will then review the PR and try to get this merged to help everyone else plot features also. See https://docs.ultralytics.com/help/contributing/ to get started. Thanks! |
@glenn-jocher ok, I will do it. |
@Zigars great thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀 Feature
I find many people want get the feature map in model middle(include myself), but you did not give the specific method to visualization feature map. Also I find a previous issue and know how can I come true this. So I provide a feature_visualization function so that people can visualization feature map by using yolov5's code .
This is my effect picture :
Motivation
It's easy to use. just add feature_visualization function in utils/general.py or utils/plots.py:
and than add this in yolo.py:
My code is not so concise, but I think feature map visualization function can help people understand what does the convolution operation do intuitively.
Also I have a little confuse about Model function, I modified in yolo.py, but when I run detect.py, I also can get the feature map.
detect.py use
model = attempt_load(weights, map_location=device)
to load model, but I can't find the relationship with yolo.py and detect.py, I'm not familiar with this mechanism in the PyTorch code. maybe you can solve my confuse!Pitch
Alternatives
Additional context
The text was updated successfully, but these errors were encountered: