Update README.md
Browse files
README.md
CHANGED
|
@@ -9,5 +9,42 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
+
# Pytorch LIghtning Model Trained for CIFAR10
|
| 13 |
+
|
| 14 |
+
- This application showcases the inference capabilities of a model trained on the CIFAR dataset.
|
| 15 |
+
- The architecture utilized is based on Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun's work on Deep Residual Learning for Image Recognition (arXiv:1512.03385).
|
| 16 |
+
- It has been recreated and trained on the CIFAR10 dataset, achieving an accuracy of 85%+ within 24 epochs. The training process was accelerated using the One Cycle Policy technique. The model implementation is done using PyTorch Lightning.
|
| 17 |
+
- The model is coded using PyTorch Lightning 2.2.2.
|
| 18 |
+
|
| 19 |
+
Mentioned below is the link for Training Repository [Training Repo Link](https://github.com/Shivdutta/ERA2-Session13)
|
| 20 |
+
|
| 21 |
+
- Following the training process, the model is saved locally and then uploaded to Gradio Spaces.
|
| 22 |
+
- Attached below is the link to [download model file](https://huggingface.co/spaces/Shivdutta/S13/blob/main/model.pth)
|
| 23 |
+
|
| 24 |
+
- This app has two features :
|
| 25 |
+
|
| 26 |
+
- **GradCam:**
|
| 27 |
+
" - To visualize the specific regions of the image that the model focuses on during inference
|
| 28 |
+
- This insight can guide the development of augmentation strategies aimed at enhancing model accuracy"
|
| 29 |
+
- **Misclassified Image:**
|
| 30 |
+
- Despite achieving a test accuracy of over 85% during model training, there remained a 12% misclassification rate for certain images.
|
| 31 |
+
- This feature facilitates the visualization of misclassified images alongside their correct and incorrect labels.
|
| 32 |
+
- Such visualization aids in devising strategies to enhance accuracy, especially for specific classes."
|
| 33 |
+
|
| 34 |
+
## Usage:
|
| 35 |
+
|
| 36 |
+
### GradCam
|
| 37 |
+
|
| 38 |
+
- Upload an image or choose from predefined examples.
|
| 39 |
+
- Adjust the opacity.
|
| 40 |
+
- Specify the number of top classes you wish to view.
|
| 41 |
+
- Click the 'Submit' button to generate the results."
|
| 42 |
+
|
| 43 |
+
### Misclassified Images
|
| 44 |
+
|
| 45 |
+
- Select the number of misclassified images you want to see
|
| 46 |
+
- Click on `Display Misclassified Images` to show the images in the center and their respective correct and misclassified labels in the sequence
|
| 47 |
+
|
| 48 |
+
![GradCam and Misclassified Image]()
|
| 49 |
+
|
| 50 |
|
|
|