Gosula commited on
Commit
f51a11d
1 Parent(s): 15d28c6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -23
README.md CHANGED
@@ -12,37 +12,30 @@ license: mit
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
 
 
 
12
 
13
  # CustomResNet with GradCAM - Interactive Interface
14
 
15
+ This project Impliments a simple Gradio interface to perform inference on CustomResNet model and generate the GradCAM visualization results.
16
 
17
  ## Task :
18
 
19
+ The task involves performing classification on the CIFAR-10 dataset using the Custom ResNet model built with PyTorch and PyTorch Lightning.
20
 
21
  ## Files :
22
 
23
+ 1. `requirements.txt`: Contains the necessary packages required for installation.
24
+ 2. `custom_resnet.py`: Contains the CustomResNet model architecture.
25
+ 3. `CustomResNet.pth`: Trained model checkpoint file containing model weights.
26
+ 4. `examples/`: Folder containing example images (e.g., cat.jpg, car.jpg, etc.).
27
+ 5. `app.py`: Contains the Gradio code for the interactive interface. Users can select input images or examples and view GradCAM images, predictions, and top-k classes.
28
+ 6. `misclassified_images/`: Folder containing misclassified images.
29
 
30
+ ## Implementation
31
 
32
+ The following features are implemented using Gradio:
33
 
34
+ 1. **GradCAM Images:** Users are prompted to choose whether they want to view GradCAM images. They can specify the number of images, the target layer, and adjust opacity.
35
+ 2. **Misclassified Images:** Users have the option to view misclassified images and apply GradCAM visualization to them.
36
+ 3. **Upload and Select Images:** Users can upload new images or select from a set of 10 example images.
37
+ 4. **Top Classes:** Users can choose how many top classes they want to see in the prediction results.
38
 
39
+ ## Usage
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
+ 1. Run the `app.py` script to launch the interactive Gradio interface.