cifar10 / README.md
swapniel99's picture
update default transparency
d0473a2

A newer version of the Gradio SDK is available: 5.34.2

Upgrade
metadata
title: Cifar10
emoji: πŸ‘
colorFrom: pink
colorTo: blue
sdk: gradio
sdk_version: 3.39.0
app_file: app.py
pinned: false
license: mit

CIFAR10 demo with GradCAM

How to Use the App

  1. The app has two tabs:

    • Examples: In this tab, you can upload your own 32x32 pixel image or choose an example image provided to classify and visualize the class activation maps using GradCAM. You can adjust the number of top predicted classes, show/hide the GradCAM overlay, select multiple target layers, and control the transparency of the overlay.
    • Misclassified Examples: In this tab, the app displays a gallery of misclassified images from CIFAR10 test dataset. You can control the number of examples shown, show/hide the GradCAM overlay, select a target layer, and control the transparency of the overlay.
  2. Examples Tab:

    • Input Image: Upload your own 32x32 pixel image or select one of the example images from the given list.
    • Top Classes: Choose the number of top predicted classes to display along with their respective confidence scores.
    • Enable GradCAM: Check this box to display the GradCAM overlay on the input image. Uncheck it to view only the original image.
    • Network Layers: Select the target layers for GradCAM visualization. The default values are -2 and -1.
    • Transparency: Control the transparency of the GradCAM overlay. The default value is 0.7.
  3. Misclassified Examples Tab:

    • No. of Examples: Control the number of misclassified examples displayed in the gallery. The default value is 20.
    • Enable GradCAM: Check this box to display the GradCAM overlay on the misclassified images. Uncheck it to view only the original images.
    • Network Layer: Adjust the target layer for GradCAM visualization. The default value is -2.
    • Transparency: Control the transparency of the GradCAM overlay. The default value is 0.7.
  4. After adjusting the settings, click the "Submit" button to see the results.

Training code

The main code using which training was performed can be viewed at below location:

https://github.com/swapniel99/erav1s12

Credits

License

This project is licensed under the MIT License - see the LICENSE file for details.