Coder Social home page Coder Social logo

yjwong1999 / gradcam-for-yolov3 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.23 MB

Most tutorials on GradCAM are made for Image Classification tasks. This repo will provide an example of GradCAM for object detection using YOLOv3.

License: MIT License

Jupyter Notebook 100.00%
gradcam gradcam-visualization yolov3

gradcam-for-yolov3's Introduction

GradCAM-for-YOLOv3

Open In Colab

Reimplementation of CVPR Paper - GradCAM: Visual Explanations from Deep Networks via Gradient-based Localization
Paper link is provided here.

This repo will provide an example of GradCAM for object detection using YOLOv3.
This tutorial will use this YOLOv3 repo as the reference YOLOv3 model.

Intuition

Most tutorials on GradCAM are made for Image Classification tasks.
For one of my research projects, I would like to visualize YOLOv3's Objectness Score Heatmap using GradCAM.
Due to limited examples of TF 2.0 based YOLOv3 GradCAM, I decided to create my own based on this reference.
The repo is originally for image classification task, and I modified it for my applications.

Possible Updates

  • GradCAM for Objectness Score of YOLOv3
  • GradCAM for Classification Score for Each Detected Objects by YOLOv3

Priority is given for the first task, because I needed it for my research projects.
Feel free to contribute :)

Sample images

depthai

As shown in the plots above, we can see that the GradCAM Heatmap visualize where the objects are detected.

From Left to Right:
Left: The heatmap highlighted small objects
Mid: The heatmap highlighted middle-sized objects
Right: The heatmap highlighted large-sized objects
This is because each of the head model in YOLOv3 is responsible in detecting small, middle-sized, and large objects, respectively.

References and Acknowledgements

GradCAM using Keras
TF 2.0 YOLOv3

gradcam-for-yolov3's People

Contributors

yjwong1999 avatar

Watchers

 avatar

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.