Spaces:
Runtime error
Runtime error
update README
Browse files
README.md
CHANGED
@@ -11,9 +11,9 @@ license: mit
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
14 |
|
15 |
-
|
16 |
-
|
17 |
|
18 |
First I took Rohan shared input file, S13.ipy that is an S11 reference, where resnet code exists with lots of gradio examples.
|
19 |
Ensured it builds successfully.
|
@@ -33,3 +33,53 @@ I integrated above said three items such as gradcam for multiple images, misclas
|
|
33 |
|
34 |
Fourthly I started working on above working code to modularize it so that few py files will hold major part of code.
|
35 |
I started working on HuggingFace and created / updated required files and it is made to be in working state in HuggingFace.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
14 |
+
## Assignment 13
|
15 |
|
16 |
+
### What is done and how
|
|
|
17 |
|
18 |
First I took Rohan shared input file, S13.ipy that is an S11 reference, where resnet code exists with lots of gradio examples.
|
19 |
Ensured it builds successfully.
|
|
|
33 |
|
34 |
Fourthly I started working on above working code to modularize it so that few py files will hold major part of code.
|
35 |
I started working on HuggingFace and created / updated required files and it is made to be in working state in HuggingFace.
|
36 |
+
|
37 |
+
|
38 |
+
My spaces app has these features:
|
39 |
+
1. Asks the user whether he/she wants to see GradCAM images and how many, and from which layer, allow opacity change as well
|
40 |
+
2. Asks whether he/she wants to view misclassified images, and how many
|
41 |
+
3. Allow users to upload new images, as well as provide 10 example images
|
42 |
+
|
43 |
+
In a tabbed interface, gradio framework is used and available for use from HuggingFace.
|
44 |
+
|
45 |
+
HuggingFace https://huggingface.co/spaces/raja5259/eraV2s13_raj
|
46 |
+
Github https://github.com/rajayourfriend/EraV2/
|
47 |
+
|
48 |
+
### Log of Training
|
49 |
+
|
50 |
+
Below is the log of training with pytorch lightning for 26 epochs with 6.6M params and got a test_acc of 91.28%
|
51 |
+
|
52 |
+
INFO:pytorch_lightning.utilities.rank_zero:GPU available: True (cuda), used: True
|
53 |
+
INFO:pytorch_lightning.utilities.rank_zero:TPU available: False, using: 0 TPU cores
|
54 |
+
INFO:pytorch_lightning.utilities.rank_zero:IPU available: False, using: 0 IPUs
|
55 |
+
INFO:pytorch_lightning.utilities.rank_zero:HPU available: False, using: 0 HPUs
|
56 |
+
Files already downloaded and verified
|
57 |
+
Files already downloaded and verified
|
58 |
+
INFO:pytorch_lightning.accelerators.cuda:LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
59 |
+
INFO:pytorch_lightning.callbacks.model_summary:
|
60 |
+
| Name | Type | Params
|
61 |
+
----------------------------------
|
62 |
+
0 | model | Net_S13 | 6.6 M
|
63 |
+
----------------------------------
|
64 |
+
6.6 M Trainable params
|
65 |
+
0 Non-trainable params
|
66 |
+
6.6 M Total params
|
67 |
+
26.293 Total estimated model params size (MB)
|
68 |
+
Epochβ25:β100%
|
69 |
+
β197/197β[00:23<00:00,ββ8.53it/s,βloss=0.0844,βv_num=3,βval_loss=0.261,βval_acc=0.916]
|
70 |
+
INFO:pytorch_lightning.utilities.rank_zero:`Trainer.fit` stopped: `max_epochs=26` reached.
|
71 |
+
Files already downloaded and verified
|
72 |
+
Files already downloaded and verified
|
73 |
+
INFO:pytorch_lightning.accelerators.cuda:LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
|
74 |
+
TestingβDataLoaderβ0:β100%
|
75 |
+
β40/40β[00:03<00:00,β11.30it/s]
|
76 |
+
βββββββββββββββββββββββββββββ³ββββββββββββββββββββββββββββ
|
77 |
+
β Test metric β DataLoader 0 β
|
78 |
+
β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©
|
79 |
+
β test_acc β 0.9128999710083008 β
|
80 |
+
β test_loss β 0.2818313539028168 β
|
81 |
+
βββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
|
82 |
+
[{'test_loss': 0.2818313539028168, 'test_acc': 0.9128999710083008}]
|
83 |
+
|
84 |
+
|
85 |
+
|