|
a |
|
b/README.md |
|
|
1 |
# Bleeding Detection and Classification |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
### Classification Metrics |
|
|
5 |
| Metric (in probability)| Value | |
|
|
6 |
|------------------------|----------| |
|
|
7 |
| Accuracy | 0.7864 | |
|
|
8 |
| Recall (Bleeding) | 0.9602 | |
|
|
9 |
| Recall (Non Bleeding) | 0.6126| |
|
|
10 |
| Recall (Weighted) | 0.7864| |
|
|
11 |
| F1-Score (Bleeding) | 0.8180 | |
|
|
12 |
| F1-Score (Non Bleeding) | 0.7415 | |
|
|
13 |
| F1-Score (Weighted) | 0.7798 | |
|
|
14 |
|
|
|
15 |
### Detection Metrics |
|
|
16 |
| Metric (in probability)| Value | |
|
|
17 |
|------------------------|----------------| |
|
|
18 |
| mAP50 | 0.652 | |
|
|
19 |
| mAP50-95| 0.336 | |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
### Training Metrics |
|
|
23 |
|
|
|
24 |
| **Confusion Metrics** | **Confusion Metrics Normalized**| |
|
|
25 |
|------ |---------------------| |
|
|
26 |
||| |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
| **F1 Curve** | **P Curve**|**PR Curve** |**R Curve**| |
|
|
30 |
|------ |---------------------|------ |---------------------| |
|
|
31 |
|||| |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
## Detection and Classification |
|
|
35 |
|
|
|
36 |
### Validation Dataset |
|
|
37 |
| **Imagename** | **img- (43).png** | **img- (44).png**|**img- (68).png**|**img- (164).png**|**img- (200).png**| |
|
|
38 |
|------ |---------------------|---------------------|---------------------|---------------------|---------------------| |
|
|
39 |
|**Images** ||||| |
|
|
40 |
| **Imagename** | **img- (448).png** | **img- (514).png**|**img- (628).png**|**img- (687).png**|**img- (677).png**| |
|
|
41 |
|**Images** ||||| |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
## Interpretability Plots (Cam Plots of 2nd last layer) |
|
|
47 |
|
|
|
48 |
### Test Dataset 1 |
|
|
49 |
|
|
|
50 |
| **Imagename** | **A0010.png** | **A0021.png**|**A0031.png**|**A0040.png**|**A0045.png**| |
|
|
51 |
|------ |---------------------|---------------------|---------------------|---------------------|---------------------| |
|
|
52 |
|**Cam Images** | | || | |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
### Test Dataset 2 |
|
|
56 |
| **Imagename** | **A0164.png** | **A0256.png**|**A0300.png**|**A0384.png**|**A0473.png**| |
|
|
57 |
|------ |---------------------|---------------------|---------------------|---------------------|---------------------| |
|
|
58 |
|**CAM Images** | | ||| |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
## Detection and Classification |
|
|
63 |
### Testing Dataset 1 |
|
|
64 |
|
|
|
65 |
| **Imagename** | **A0047.png** | **A0043.png**|**A0048.png**|**A0040.png**|**A0035.png**| |
|
|
66 |
|------ |---------------------|---------------------|---------------------|---------------------|---------------------| |
|
|
67 |
|**Images** | ||| | |
|
|
68 |
|
|
|
69 |
### Testing Dataset 2 |
|
|
70 |
| **Imagename** | **A0258.png** | **A0260.png**|**A0500.png**|**A0261.png**|**A0498.png**| |
|
|
71 |
|------ |---------------------|---------------------|---------------------|---------------------|---------------------| |
|
|
72 |
|**Images** | | |||| |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
# Instructions |
|
|
76 |
- Clone the repo |
|
|
77 |
- Install requirements.txt via `pip install -r requirements.txt` |
|
|
78 |
- Download and extract the model weights from [here](https://drive.google.com/drive/folders/15JUQSBSc9LGDM7J7Hhs053oWCTjpFqJx?usp=sharing) |
|
|
79 |
- Do necessary changes in `test.py` file. |
|
|
80 |
- Running the `test.py` generates the `predictions.csv` file |