File size: 1,988 Bytes
e59cfdf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
license: afl-3.0
title: Spaces Readme
sdk: gradio
emoji: πŸš€
colorFrom: yellow
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference


# Lighting DavidNet over Spaces


### Gradio Integration for Interactive Model Predictions:

Develop a Gradio interface that envelops the model for seamless interactive predictions. This setup includes the following user-driven functionalities:

**GradCAM Visualizations**:
- Users can opt to visualize GradCAM images.
- Flexibility to choose the number of GradCAM images for display.
- Selection of the specific layer for generating GradCAM visualizations.
- Ability to adjust opacity of the overlaid GradCAM images.

**Misclassified Images**:
- Users have the choice to review misclassified images.
- Option to determine the quantity of misclassified images to be presented.

**Image Upload**:
- Users can upload their own images for predictions.
- A set of 10 example images is available for experimentation.

**Class Preferences**:
- Users can specify the number of top predicted classes they want to see.
- A limit of 10 classes ensures a manageable display.

### Deployment on Hugging Face Spaces:

The Gradio application, featuring the integrated model, is deployed on Hugging Face Spaces. The Spaces README encompasses the following elements:

- A comprehensive overview of the Spaces app's functionality.
- Exclusion of any training-related code from the README.
- Inclusion of links to the Lightning codebase on GitHub, ensuring a clear separation of model training specifics from deployment details.

### GitHub Repository for Lightning Training Code:

The Lightning training code resides in a distinct GitHub repository. The repository's detailed README incorporates:

- A comprehensive log detailing the training progression.
- Graphs illustrating the training epochs' loss function.
- Showcasing of 10 instances of misclassified images, complete with actual and predicted labels.

---