Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -10,16 +10,39 @@ pinned: false
|
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
16 |
|
17 |
-> requirements.txt file contains necessary packages to install.
|
18 |
|
19 |
-> custom_resnet.py file contains model architecture.
|
20 |
|
21 |
-
->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
24 |
|
25 |
-
--> app.py contains gradio code. By using gradio here implemented by selecting input images or examples output display the gradcam image and prediction and top k classes. I tried with multiple gradcam and misclassified i am getting errors.
|
|
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
+
# CustomResNet with GradCAM - Interactive Interface
|
14 |
+
|
15 |
+
### Implimented a simple Gradio interface to infer on CustomResNet model and get GradCAM results
|
16 |
|
17 |
+
## Task :
|
18 |
+
|
19 |
+
Classification on CIFAR10 dataset using Custom ResNet model by using pytorch lightning.
|
20 |
+
|
21 |
+
## Files :
|
22 |
|
23 |
-> requirements.txt file contains necessary packages to install.
|
24 |
|
25 |
-> custom_resnet.py file contains model architecture.
|
26 |
|
27 |
+
-> CustomResNet.pth contains trained model checkpoints (weights).
|
28 |
+
|
29 |
+
-> examples folder : 10 example images like cat.jpg, car.jpg,..
|
30 |
+
|
31 |
+
--> app.py contains gradio code. By using gradio here implemented by selecting input images or examples output display the gradcam image and prediction and top k classes.
|
32 |
+
|
33 |
+
--> misclassified_images folder : 10 misclassified images
|
34 |
+
|
35 |
+
## Implimentation :
|
36 |
+
|
37 |
+
First loaded the model by using model weights .pth file.
|
38 |
+
|
39 |
+
### By using GRADIO we created these features :
|
40 |
+
|
41 |
+
-> Asking the user they want to see GradCAM images if yes then how many images, from which layer and also allow opacity change.
|
42 |
+
|
43 |
+
-> Providing the option to user they want to view misclassified images, and how many images. If they want to apply grad cam for misclassified images.
|
44 |
+
|
45 |
+
--> Option to upload new images, as well as select from 10 example images.
|
46 |
|
47 |
+
--> Providing one more option how many top classes they want to see.
|
48 |
|
|