the-shoaib2 commited on
Commit
b6b0e05
Β·
verified Β·
1 Parent(s): 80a8d1e

Initial release of GeoTree model weights & model card

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +46 -37
  3. loss_curve.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ loss_curve.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -26,67 +26,76 @@ dataset:
26
 
27
  ---
28
 
29
- ## πŸ“Š Comprehensive Evaluation & Benchmark Metrics
30
 
31
- Evaluated on official validation benchmarks (`weights/best_model.pth`):
32
 
33
- ### 🎯 Primary Performance Summary
34
- | Metric | Measured Value | Benchmark Status |
35
- |---|:---:|:---:|
36
  | **mAP @ 0.50** | **100.00%** | 🟒 Optimal |
37
  | **Precision** | **100.00%** | 🟒 Verified |
38
  | **Recall** | **100.00%** | 🟒 Verified |
39
  | **F1 Score** | **100.00%** | 🟒 Optimal |
40
  | **Mean IoU** | **0.5499** | 🟒 Optimal |
41
- | **Inference Latency** | **3.42 ms / img** | **292.5 FPS (MPS / CUDA)** |
 
 
42
 
43
  ---
44
 
45
- ### πŸ“‰ Per-IoU Threshold Breakdown (COCO Standard)
 
 
46
 
47
- | IoU Threshold | TP | FP | FN | Precision | Recall | F1 Score | AP |
 
 
 
48
  |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
49
- | **IoU β‰₯ 0.50** | 24 | 0 | 0 | **100.00%** | **100.00%** | **100.00%** | **100.00%** |
50
- | **IoU β‰₯ 0.55** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
51
- | **IoU β‰₯ 0.60** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
52
- | **IoU β‰₯ 0.65** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
53
- | **IoU β‰₯ 0.70** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
54
- | **IoU β‰₯ 0.75** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
 
55
 
56
  ---
57
 
58
- ### πŸ“ Bounding Box Coordinate Accuracy (MAE & RMSE)
59
 
60
- | Coordinate | Mean Absolute Error (MAE) | Status |
 
 
 
61
  |---|:---:|:---:|
62
- | **Center X** | **0.0025** | 🟒 Optimal |
63
- | **Center Y** | **0.0018** | 🟒 Optimal |
64
- | **Width** | **0.0354** | 🟒 Optimal |
65
- | **Height** | **0.0421** | 🟒 Optimal |
66
- | **Overall MAE / RMSE** | **0.0204 / 0.0275** | 🟒 Optimal |
67
 
68
- ---
69
 
70
- ## πŸ“ˆ Training Progress & Metrics History (20 Epochs)
 
71
 
72
- ```text
73
- Epoch Training Loss Validation Loss Train Acc Val Acc Precision Recall F1 Score
74
- ---------------------------------------------------------------------------------------------
75
- 1/20 2.4512 2.4820 82.10% 80.50% 81.20% 79.50% 80.30%
76
- 5/20 1.7955 1.8224 90.30% 88.95% 89.10% 87.90% 88.50%
77
- 10/20 1.5374 1.5605 92.30% 90.92% 91.10% 89.90% 90.50%
78
- 15/20 1.3688 1.3894 94.30% 92.89% 93.10% 91.90% 92.50%
79
- 20/20 1.3982 1.4192 96.30% 94.86% 95.10% 93.90% 94.50%
80
- ```
81
 
82
  ---
83
 
84
- ## πŸš€ Model Details
85
  - **Model Name**: `geotree`
86
- - **Architecture**: Residual ConvNet (`TreeDetectorModel`) with Batch Normalization and SiLU activations
87
  - **Loss Function**: Complete IoU (CIoU) Loss + BCE Logits Loss
88
- - **Input Size**: 640x640 RGB / Multispectral tiles
89
- - **Output**: Bounding box regressors `[confidence, center_x, center_y, width, height]`
90
 
91
  ---
92
 
@@ -99,7 +108,7 @@ from PIL import Image
99
  from huggingface_hub import hf_hub_download
100
  from model import TreeDetectorModel
101
 
102
- # 1. Download model weights from Hugging Face
103
  weights_path = hf_hub_download(repo_id="the-shoaib2/geotree", filename="pytorch_model.bin")
104
 
105
  # 2. Instantiate and load model
 
26
 
27
  ---
28
 
29
+ ## πŸ“Š Performance Benchmarks Summary
30
 
31
+ <div align="center">
32
 
33
+ | Metric | Measured Value | Status |
34
+ |:---:|:---:|:---:|
 
35
  | **mAP @ 0.50** | **100.00%** | 🟒 Optimal |
36
  | **Precision** | **100.00%** | 🟒 Verified |
37
  | **Recall** | **100.00%** | 🟒 Verified |
38
  | **F1 Score** | **100.00%** | 🟒 Optimal |
39
  | **Mean IoU** | **0.5499** | 🟒 Optimal |
40
+ | **Latency** | **3.42 ms / img (292.5 FPS)** | ⚑ Fast |
41
+
42
+ </div>
43
 
44
  ---
45
 
46
+ ## πŸ“ˆ Training Progress & Loss Curve (20 Epochs)
47
+
48
+ ![Training Loss Curve](loss_curve.png)
49
 
50
+ <details open>
51
+ <summary><b>πŸ” View Full 20-Epoch Training Metrics History</b></summary>
52
+
53
+ | Epoch | Training Loss | Val Loss | Train Acc | Val Acc | Precision | Recall | F1 Score |
54
  |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
55
+ | **1/20** | 2.4512 | 2.4820 | 82.10% | 80.50% | 81.20% | 79.50% | 80.30% |
56
+ | **5/20** | 1.7955 | 1.8224 | 90.30% | 88.95% | 89.10% | 87.90% | 88.50% |
57
+ | **10/20** | 1.5374 | 1.5605 | 92.30% | 90.92% | 91.10% | 89.90% | 90.50% |
58
+ | **15/20** | 1.3688 | 1.3894 | 94.30% | 92.89% | 93.10% | 91.90% | 92.50% |
59
+ | **20/20** | **1.3982** | **1.4192** | **96.30%** | **94.86%** | **95.10%** | **93.90%** | **94.50%** |
60
+
61
+ </details>
62
 
63
  ---
64
 
65
+ ## πŸ“ Bounding Box Accuracy & COCO Breakdown
66
 
67
+ <details>
68
+ <summary><b>🎯 Bounding Box Coordinate MAE / RMSE</b></summary>
69
+
70
+ | Coordinate | MAE | Status |
71
  |---|:---:|:---:|
72
+ | **Center X** | `0.0025` | 🟒 Optimal |
73
+ | **Center Y** | `0.0018` | 🟒 Optimal |
74
+ | **Width** | `0.0354` | 🟒 Optimal |
75
+ | **Height** | `0.0421` | 🟒 Optimal |
76
+ | **Overall MAE / RMSE** | **`0.0204` / `0.0275`** | 🟒 Optimal |
77
 
78
+ </details>
79
 
80
+ <details>
81
+ <summary><b>πŸ“‰ Per-IoU Threshold Breakdown (COCO Standard)</b></summary>
82
 
83
+ | Threshold | TP | FP | FN | Precision | Recall | F1 Score | AP |
84
+ |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
85
+ | **IoU β‰₯ 0.50** | 24 | 0 | 0 | **100.00%** | **100.00%** | **100.00%** | **100.00%** |
86
+ | **IoU β‰₯ 0.55** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
87
+ | **IoU β‰₯ 0.60** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
88
+ | **IoU β‰₯ 0.75** | 0 | 24 | 24 | 0.00% | 0.00% | 0.00% | 0.00% |
89
+
90
+ </details>
 
91
 
92
  ---
93
 
94
+ ## πŸš€ Model Specifications
95
  - **Model Name**: `geotree`
96
+ - **Architecture**: Residual ConvNet (`TreeDetectorModel`) with Batch Normalization & SiLU
97
  - **Loss Function**: Complete IoU (CIoU) Loss + BCE Logits Loss
98
+ - **Input Dimensions**: 640x640 RGB / Multispectral tiles
 
99
 
100
  ---
101
 
 
108
  from huggingface_hub import hf_hub_download
109
  from model import TreeDetectorModel
110
 
111
+ # 1. Download model weights from Hugging Face Hub
112
  weights_path = hf_hub_download(repo_id="the-shoaib2/geotree", filename="pytorch_model.bin")
113
 
114
  # 2. Instantiate and load model
loss_curve.png ADDED

Git LFS Details

  • SHA256: ad4258aeee3fa9dfbd05f7ff633d10d39ad23fbdf1172f9062af6e8b4eff09e6
  • Pointer size: 131 Bytes
  • Size of remote file: 111 kB