Views
No views yet
Input (224×224 RGB)
│
▼
┌─────────────────────────────────┐
│ ResNet18 Backbone (ImageNet) │
│ ├─ Conv1 + BN + ReLU + MaxPool │
│ ├─ Layer1 (64ch) │
│ ├─ Layer2 (128ch) ──► CBAM(128)│
│ ├─ Layer3 (256ch) ──► CBAM(256)│
│ └─ Layer4 (512ch) ──► CBAM(512)│
│ └─ AdaptiveAvgPool2d(1,1) │
└─────────────────────────────────┘
│ 512-d feature
▼
┌─────────────────────────────────┐
│ Classification Head │
│ Dropout(0.5) │
│ Linear(512→256) + ReLU + BN │
│ Dropout(0.3) │
│ Linear(256→20) │
└─────────────────────────────────┘
│
20-class logits| # | Fruit | # | Fruit | # | Fruit | # | Fruit |
|---|---|---|---|---|---|---|---|
| 1 | Apple | 6 | Strawberry | 11 | Jujube | 16 | Papaya |
| 2 | Banana | 7 | Pineapple | 12 | Pear | 17 | Avocado |
| 3 | Orange | 8 | Mango | 13 | Cherry | 18 | Blueberry |
| 4 | Grape | 9 | Lemon | 14 | Coconut | 19 | Cantaloupe |
| 5 | Watermelon | 10 | Kiwi | 15 | Pomegranate | 20 | Dragonfruit |