|
Download README.md from Anlea/cloudie-weights: direct link, hf CLI and curl.
- Browser
- Download file 5.82 kB
-
https://huggingface.co/Anlea/cloudie-weights/resolve/main/README.md
- Command line
-
hf download hf://Anlea/cloudie-weights/README.md
-
curl -L -o README.md https://huggingface.co/Anlea/cloudie-weights/resolve/main/README.md
5.82 kB
| license: mit | |
| library_name: pytorch | |
| tags: | |
| - tropical-cyclone | |
| - remote-sensing | |
| - pytorch | |
| - conformal-prediction | |
| language: | |
| - en | |
| datasets: | |
| - incyde | |
| - tcir | |
| pipeline_tag: image-to-text | |
| # Cloudie Cyclone Intensity Weights (`Anlea/cloudie-weights`) | |
| Checkpoint archive and run records for **Cloudie**, an academic tropical-cyclone intensity estimation framework from infrared satellite imagery. | |
| > [!WARNING] | |
| > **Operational Disclaimer & Scientific Honesty** | |
| > - This model is **not an operational warning, forecast, or cyclone advisory system**. | |
| > - Do not use these outputs for life-safety, navigation, or emergency-response decisions. | |
| > - Best-track labels (HURDAT2 / IMD best track) are subject to observational and post-analysis uncertainty; agreement with labels is not ground truth. | |
| > - Monte Carlo dropout variance captures model uncertainty under dropout noise, not physical meteorological forecast bounds. Calibrated intervals require validation conformal scaling. | |
| --- | |
| ## Model Details | |
| - **Model Type:** 4-Frame Spatiotemporal ConvLSTM / SimpleCNN | |
| - **Primary Task:** Regression of tropical-cyclone maximum sustained wind speed in **knots (IMD 3-minute standard)** | |
| - **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) | |
| - **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. | |
| - **Source Code:** [GitHub: AnleaMJ/cloudie](https://github.com/AnleaMJ/cloudie) | |
| --- | |
| ## Expected Repository Layout | |
| 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`: | |
| ``` | |
| Anlea/cloudie-weights/ | |
| βββ nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d/ | |
| β βββ checkpoint.pt # Torch model state dict + norm stats + config hash | |
| β βββ config.yaml # Resolved training configuration | |
| β βββ metrics.json # Evaluated test/val metrics (quote_as_result: yes) | |
| β βββ run_record.json # Full provenance: git commit, hardware, seeds | |
| β βββ loss_curve.png # Training & validation loss history | |
| β βββ calibration.npz # Test/val MC draws and targets for conformal evaluation | |
| βββ README.md | |
| ``` | |
| > [!IMPORTANT] | |
| > Raw model weight files (`.pt`) must never be committed to the GitHub repository. Checkpoints belong exclusively on this Hugging Face Hub repository. | |
| --- | |
| ## Integration with Cloudie Hugging Face Space | |
| The Cloudie Gradio Space ([`space/app.py`](https://github.com/AnleaMJ/cloudie/blob/main/space/app.py)) automatically queries this repository when configured. | |
| To attach this model weights repository to the Space: | |
| 1. Open the Space settings on Hugging Face (`Anlea/cloudie` → Settings → Variables and secrets). | |
| 2. Set the Environment Variable: | |
| ```env | |
| CLOUDIE_HF_MODEL_REPO=Anlea/cloudie-weights | |
| CLOUDIE_RUN_ID=nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d | |
| ``` | |
| 3. If the model weights repository is private, add a read-scoped secret: | |
| ```env | |
| HF_TOKEN=hf_... | |
| ``` | |
| 4. `src.inference.RunCheckpoint` validates the remote run record and verifies that it passed held-out storm evaluation before serving predictions. | |
| --- | |
| ## Python Inference Usage | |
| ```python | |
| import os | |
| import torch | |
| from src.config import load_config | |
| from src.inference import RunCheckpoint, predict_images | |
| # Configure target repository | |
| os.environ["CLOUDIE_HF_MODEL_REPO"] = "Anlea/cloudie-weights" | |
| os.environ["CLOUDIE_RUN_ID"] = "nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d" | |
| config = load_config("config/config.yaml") | |
| # RunCheckpoint handles Hub download, integrity check, and held-out validation gating | |
| checkpoint_path = RunCheckpoint.resolve_path(config) | |
| print(f"Loaded checkpoint from: {checkpoint_path}") | |
| ``` | |
| --- | |
| ## Evaluation & Data Splitting Guardrails | |
| - **Zero Data Leakage:** Storms are partitioned disjointly across train, validation, and test splits (`src.splits.assign_storms`). No storm crosses split boundaries. | |
| - **Normalization Isolation:** Finite-pixel z-score parameters are computed exclusively on training storms. | |
| - **6-Point Leakage Audit:** Audited by `src.verify_splits` across `storm_wise`, `chronological`, and `holdout_basin` splits. | |
| - **Conformal Uncertainty:** 90% confidence intervals are evaluated using post-hoc scaled conformal prediction (`src.calibration.compare_calibration`). | |
| --- | |
| ## License | |
| 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. | |
| --- | |
| ## Verified Model Performance (`nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d`) | |
| **Dataset:** `NASA` | **Architecture:** `resnet18` | |
| > **Verified Run Results:** `nasa-resnet18-20261121T180837Z-1795284517431658868-03243d0d` (NASA | Model: `resnet18`) | |
| > 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. | |
| ### Val Split Performance | |
| | Metric | Value | | |
| |---|---| | |
| | MAE (KT) | 7.35 | | |
| | RMSE (KT) | 10.12 | | |
| | BIAS (KT) | -1.68 | | |
| | N (frames/windows) | 15979 | | |
| ### Test Split Performance | |
| | Metric | Value | | |
| |---|---| | |
| | MAE (KT) | 9.13 | | |
| | RMSE (KT) | 12.55 | | |
| | BIAS (KT) | -3.78 | | |
| | N (frames/windows) | 19855 | | |