Update README.md
Browse files
README.md
CHANGED
|
@@ -65,24 +65,39 @@ Dataset split:
|
|
| 65 |
|
| 66 |
## Model Architecture
|
| 67 |
|
| 68 |
-
The project uses
|
| 69 |
-
|
| 70 |
-
Pipeline:
|
| 71 |
|
| 72 |
```text
|
| 73 |
Image
|
| 74 |
β
|
| 75 |
-
|
|
|
|
|
|
|
| 76 |
β
|
| 77 |
EfficientNet-B0
|
| 78 |
β
|
| 79 |
Classification Head
|
| 80 |
β
|
| 81 |
-
|
| 82 |
```
|
| 83 |
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
---
|
| 87 |
|
| 88 |
## Results
|
|
|
|
| 65 |
|
| 66 |
## Model Architecture
|
| 67 |
|
| 68 |
+
The project uses a two-stage pipeline:
|
|
|
|
|
|
|
| 69 |
|
| 70 |
```text
|
| 71 |
Image
|
| 72 |
β
|
| 73 |
+
DETR Object Detector
|
| 74 |
+
β
|
| 75 |
+
Cat Detection
|
| 76 |
β
|
| 77 |
EfficientNet-B0
|
| 78 |
β
|
| 79 |
Classification Head
|
| 80 |
β
|
| 81 |
+
Naughty Cat / Other Cat
|
| 82 |
```
|
| 83 |
|
| 84 |
+
### Stage 1: Object Detection
|
| 85 |
+
|
| 86 |
+
The system first uses **DETR (DEtection TRansformer)** (`facebook/detr-resnet-50`) to determine whether a cat is present in the image.
|
| 87 |
+
|
| 88 |
+
Possible outcomes:
|
| 89 |
|
| 90 |
+
- Cat detected β continue to classification
|
| 91 |
+
- No cat detected β return a warning message
|
| 92 |
+
|
| 93 |
+
### Stage 2: Cat Classification
|
| 94 |
+
|
| 95 |
+
If a cat is detected, the image is passed to an **EfficientNet-B0** classifier trained using transfer learning.
|
| 96 |
+
|
| 97 |
+
The classifier predicts one of two classes:
|
| 98 |
+
|
| 99 |
+
- Naughty Cat
|
| 100 |
+
- Other Cat
|
| 101 |
---
|
| 102 |
|
| 103 |
## Results
|