Anlea commited on
Commit
03945d1
Β·
verified Β·
1 Parent(s): a96810b

docs: update model card for run nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d

Browse files
Files changed (1) hide show
  1. README.md +141 -0
README.md ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: pytorch
4
+ tags:
5
+ - tropical-cyclone
6
+ - remote-sensing
7
+ - pytorch
8
+ - conformal-prediction
9
+ language:
10
+ - en
11
+ datasets:
12
+ - incyde
13
+ - tcir
14
+ pipeline_tag: image-to-text
15
+ ---
16
+
17
+ # Cloudie Cyclone Intensity Weights (`Anlea/cloudie-weights`)
18
+
19
+ Checkpoint archive and run records for **Cloudie**, an academic tropical-cyclone intensity estimation framework from infrared satellite imagery.
20
+
21
+ > [!WARNING]
22
+ > **Operational Disclaimer & Scientific Honesty**
23
+ > - This model is **not an operational warning, forecast, or cyclone advisory system**.
24
+ > - Do not use these outputs for life-safety, navigation, or emergency-response decisions.
25
+ > - Best-track labels (HURDAT2 / IMD best track) are subject to observational and post-analysis uncertainty; agreement with labels is not ground truth.
26
+ > - Monte Carlo dropout variance captures model uncertainty under dropout noise, not physical meteorological forecast bounds. Calibrated intervals require validation conformal scaling.
27
+
28
+ ---
29
+
30
+ ## Model Details
31
+
32
+ - **Model Type:** 4-Frame Spatiotemporal ConvLSTM / SimpleCNN
33
+ - **Primary Task:** Regression of tropical-cyclone maximum sustained wind speed in **knots (IMD 3-minute standard)**
34
+ - **Auxiliary Task:** 5 project intensity categories: `D_DD` [17, 34), `CS` [34, 48), `SCS` [48, 64), `VSCS` [64, 91), `ESCS_SUCS` [91+] kt (project grouping; not official IMD warning classes)
35
+ - **Input Modality:** Infrared satellite imagery (e.g. INSAT-3D/3DR IR1 from INCYDE or GridSat-B1 IR1 from TCIR), single-channel, normalized with train-storm statistics only, circular-masked.
36
+ - **Source Code:** [GitHub: AnleaMJ/cloudie](https://github.com/AnleaMJ/cloudie)
37
+
38
+ ---
39
+
40
+ ## Expected Repository Layout
41
+
42
+ When mirror runs are published to `Anlea/cloudie-weights`, the repository mirrors the canonical `artifacts/runs/nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d/` structure required by `src.inference.RunCheckpoint`:
43
+
44
+ ```
45
+ Anlea/cloudie-weights/
46
+ β”œβ”€β”€ nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d/
47
+ β”‚ β”œβ”€β”€ checkpoint.pt # Torch model state dict + norm stats + config hash
48
+ β”‚ β”œβ”€β”€ config.yaml # Resolved training configuration
49
+ β”‚ β”œβ”€β”€ metrics.json # Evaluated test/val metrics (quote_as_result: yes)
50
+ β”‚ β”œβ”€β”€ run_record.json # Full provenance: git commit, hardware, seeds
51
+ β”‚ β”œβ”€β”€ loss_curve.png # Training & validation loss history
52
+ β”‚ └── calibration.npz # Test/val MC draws and targets for conformal evaluation
53
+ └── README.md
54
+ ```
55
+
56
+ > [!IMPORTANT]
57
+ > Raw model weight files (`.pt`) must never be committed to the GitHub repository. Checkpoints belong exclusively on this Hugging Face Hub repository.
58
+
59
+ ---
60
+
61
+ ## Integration with Cloudie Hugging Face Space
62
+
63
+ The Cloudie Gradio Space ([`space/app.py`](https://github.com/AnleaMJ/cloudie/blob/main/space/app.py)) automatically queries this repository when configured.
64
+
65
+ To attach this model weights repository to the Space:
66
+
67
+ 1. Open the Space settings on Hugging Face (`Anlea/cloudie` → Settings → Variables and secrets).
68
+ 2. Set the Environment Variable:
69
+ ```env
70
+ CLOUDIE_HF_MODEL_REPO=Anlea/cloudie-weights
71
+ CLOUDIE_RUN_ID=nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d
72
+ ```
73
+ 3. If the model weights repository is private, add a read-scoped secret:
74
+ ```env
75
+ HF_TOKEN=hf_...
76
+ ```
77
+ 4. `src.inference.RunCheckpoint` validates the remote run record and verifies that it passed held-out storm evaluation before serving predictions.
78
+
79
+ ---
80
+
81
+ ## Python Inference Usage
82
+
83
+ ```python
84
+ import os
85
+ import torch
86
+ from src.config import load_config
87
+ from src.inference import RunCheckpoint, predict_images
88
+
89
+ # Configure target repository
90
+ os.environ["CLOUDIE_HF_MODEL_REPO"] = "Anlea/cloudie-weights"
91
+ os.environ["CLOUDIE_RUN_ID"] = "nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d"
92
+
93
+ config = load_config("config/config.yaml")
94
+
95
+ # RunCheckpoint handles Hub download, integrity check, and held-out validation gating
96
+ checkpoint_path = RunCheckpoint.resolve_path(config)
97
+ print(f"Loaded checkpoint from: {checkpoint_path}")
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Evaluation & Data Splitting Guardrails
103
+
104
+ - **Zero Data Leakage:** Storms are partitioned disjointly across train, validation, and test splits (`src.splits.assign_storms`). No storm crosses split boundaries.
105
+ - **Normalization Isolation:** Finite-pixel z-score parameters are computed exclusively on training storms.
106
+ - **6-Point Leakage Audit:** Audited by `src.verify_splits` across `storm_wise`, `chronological`, and `holdout_basin` splits.
107
+ - **Conformal Uncertainty:** 90% confidence intervals are evaluated using post-hoc scaled conformal prediction (`src.calibration.compare_calibration`).
108
+
109
+ ---
110
+
111
+ ## License
112
+
113
+ Code is licensed under the [MIT License](https://github.com/AnleaMJ/cloudie/blob/main/LICENSE). Trained weights and meteorological satellite data (INCYDE, TCIR, NASA) remain subject to their respective institutional terms of use and licenses.
114
+
115
+ ---
116
+
117
+ ## Verified Model Performance (`nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d`)
118
+
119
+ **Dataset:** `NASA` | **Architecture:** `resnet18`
120
+
121
+ > **Verified Run Results:** `nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d` (NASA | Model: `resnet18`)
122
+
123
+ > All metrics use the held-out storm protocol with zero data leakage. Bins are this project's own grouping (17/34/48/64/91 kt), not official IMD classes.
124
+
125
+ ### Val Split Performance
126
+
127
+ | Metric | Value |
128
+ |---|---|
129
+ | MAE (KT) | 7.35 |
130
+ | RMSE (KT) | 10.12 |
131
+ | BIAS (KT) | -1.68 |
132
+ | N (frames/windows) | 15979 |
133
+
134
+ ### Test Split Performance
135
+
136
+ | Metric | Value |
137
+ |---|---|
138
+ | MAE (KT) | 9.13 |
139
+ | RMSE (KT) | 12.55 |
140
+ | BIAS (KT) | -3.78 |
141
+ | N (frames/windows) | 19855 |