Skip to content
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

Yolo det vis #11825

Closed
wants to merge 568 commits into from
Closed

Yolo det vis #11825

wants to merge 568 commits into from

Conversation

hlmhlr
Copy link

@hlmhlr hlmhlr commented Jul 6, 2023

Hi,

To visualize the visualize class activation maps (CAM) of the deep neural network, I have made some modifications in the code of @pourmand1376 explainer.py from the link to make it more robust regarding CAM output visualization by taking the idea from this link..

Mainly the following changes are made:

  • Concerning object detection, removing heatmap data outside of the bounding boxes and scaling the heatmaps within each box.
  • Drawing the bounding boxes for a specific class(es) if mentioned via argument otherwise for all classes.
  • Showcasing or hiding the class labels. For example, if there is an aerial image with a large number of objects, then visualizing the labels would limit the analysis of surrounding objects.
  • Visualizing the classwise activation maps with/without drawing boxes.

File 'explainer.py' (on this link ) will save four images (CAM image, heatmap, CAM with/without boxes drawn, concatenated image to visualize original, CAM and CAM with boxes images at once) for every single input image. However, the run function will return three images (cam image, cam image with boxes, and concatenated image) for the last input image just to have better visualization and analysis.

The updated colab notebook is available on this link where the results can be generated and verified.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Hello @hlmhlr, thank you for submitting a YOLOv5 🚀 PR! To allow your work to be integrated as seamlessly as possible, we advise you to:

  • ✅ Verify your PR is up-to-date with ultralytics/yolov5 master branch. If your PR is behind you can update your code by clicking the 'Update branch' button or by running git pull and git merge master locally.
  • ✅ Verify all YOLOv5 Continuous Integration (CI) checks are passing.
  • ✅ Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

👋 Hello there! We wanted to let you know that we've decided to close this pull request due to inactivity. We appreciate the effort you put into contributing to our project, but unfortunately, not all contributions are suitable or aligned with our product roadmap.

We hope you understand our decision, and please don't let it discourage you from contributing to open source projects in the future. We value all of our community members and their contributions, and we encourage you to keep exploring new projects and ways to get involved.

For additional resources and information, please see the links below:

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label Oct 5, 2023
@github-actions github-actions bot closed this Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants