PavanKumarAmbadapudi commited on
Commit
e85b01e
·
verified ·
1 Parent(s): 27dfecc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +48 -15
README.md CHANGED
@@ -1,3 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
 
3
  # 🏥 Diabetic Retinopathy Severity Classification
@@ -82,21 +130,6 @@ def predict_model_Hybrid(model, image_tensor):
82
  return model_predictions
83
  print("Hybrid ViT ", predict_model_Hybrid(model, image_tensor))
84
  ```
85
- ## 📊 Training Details
86
- This model was trained on **APTOS 2019 Blindness Detection** dataset using **5-Fold Cross-Validation** to ensure better generalization. The training process involved EfficientNet B0 as a feature extractor combined with a Vision Transformer (ViT) classification head.
87
-
88
- ## 🛠️ Hyperparameters
89
- | Parameter | Value |
90
- |--------------|-------|
91
- | **Image Size** | 224x224 |
92
- | **Batch Size** | 32 |
93
- | **Epochs** | 5 |
94
- | **K-Folds** | 5 |
95
- | **Learning Rate** | 1e-4 |
96
- | **Optimizer** | Adam |
97
- | **Scheduler** | StepLR (Step=10, Gamma=0.5) |
98
- | **Loss Function** | CrossEntropyLoss |
99
- | **Device** | `CUDA` (if available) |
100
 
101
  ## 📬 Contact
102
  For any queries, reach out to me at:
 
1
+ ---
2
+ # Model Card for Hybrid ViT - Diabetic Retinopathy Classification
3
+
4
+ library_name: pytorch
5
+ tags:
6
+ - classification
7
+ - diabetic-retinopathy
8
+ - hybrid vit
9
+ - efficientnet
10
+ - deep-learning
11
+ - medical-ai
12
+ model_name: Hybrid_ViT
13
+ model_description: "A Hybrid Vision Transformer (ViT) with EfficientNetB0 as the backbone, trained to classify Diabetic Retinopathy severity into 5 categories."
14
+ dataset:
15
+ name: "APTOS 2019 Blindness Detection"
16
+ url: "https://www.kaggle.com/competitions/aptos2019-blindness-detection"
17
+ description: "A dataset containing retinal fundus images for classifying Diabetic Retinopathy severity."
18
+
19
+ metrics:
20
+ accuracy: 85.4
21
+ loss: 0.23
22
+ validation_accuracy: 84.5
23
+ validation_loss: 0.25
24
+
25
+ training:
26
+ epochs: 5
27
+ batch_size: 32
28
+ optimizer: Adam
29
+ learning_rate: 1e-4
30
+ scheduler:
31
+ type: StepLR
32
+ step_size: 10
33
+ gamma: 0.5
34
+ loss_function: CrossEntropyLoss
35
+ k_folds: 5
36
+ device: "CUDA"
37
+ model_architecture:
38
+ backbone: EfficientNetB0
39
+ transformer: Vision Transformer (ViT)
40
+ num_classes: 5
41
+ input_size: 224x224
42
+ framework: PyTorch
43
+
44
+
45
+ author: "Pavan Kumar Ambadapudi>"
46
+ repository: "https://huggingface.co/PavanKumarAmbadapudi/DiabeticRetinopathy_Hybrid-ViT"
47
+
48
+ ---
49
 
50
 
51
  # 🏥 Diabetic Retinopathy Severity Classification
 
130
  return model_predictions
131
  print("Hybrid ViT ", predict_model_Hybrid(model, image_tensor))
132
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
 
134
  ## 📬 Contact
135
  For any queries, reach out to me at: