Update README.md
Browse files
README.md
CHANGED
|
@@ -14,12 +14,13 @@ datasets:
|
|
| 14 |
|
| 15 |
# MeteoLibre Rectified Flow Model
|
| 16 |
|
| 17 |
-
This is a
|
|
|
|
| 18 |
|
| 19 |
## Model Description
|
| 20 |
|
| 21 |
- **Model type**: Rectified Flow Diffusion Model
|
| 22 |
-
- **Architecture**: 3D
|
| 23 |
- **Input**: Meteorological data patches (12 channels, 3D spatio-temporal)
|
| 24 |
- **Output**: Generated weather forecast data
|
| 25 |
- **Training data**: MeteoLibre meteorological dataset
|
|
@@ -34,17 +35,6 @@ This model is designed for:
|
|
| 34 |
- Research in atmospheric science and weather prediction
|
| 35 |
- Educational purposes in machine learning for climate modeling
|
| 36 |
|
| 37 |
-
## Model Architecture
|
| 38 |
-
|
| 39 |
-
The model consists of:
|
| 40 |
-
- **UNet_DCAE_3D**: 3D convolutional U-Net with encoder-decoder architecture
|
| 41 |
-
- **FiLM Conditioning**: Feature-wise linear modulation for temporal context
|
| 42 |
-
- **Rectified Flow**: Efficient generative modeling approach
|
| 43 |
-
- **Input channels**: 12 (meteorological variables)
|
| 44 |
-
- **Output channels**: 12 (forecast variables)
|
| 45 |
-
- **Features**: [64, 128, 256] channel progression
|
| 46 |
-
- **Context frames**: 4 (temporal conditioning)
|
| 47 |
-
|
| 48 |
## Training
|
| 49 |
|
| 50 |
The model was trained using:
|
|
@@ -55,53 +45,6 @@ The model was trained using:
|
|
| 55 |
- **Precision**: Mixed precision (bf16)
|
| 56 |
- **Distributed training**: Multi-GPU support
|
| 57 |
|
| 58 |
-
## Usage
|
| 59 |
-
|
| 60 |
-
### Loading the Model
|
| 61 |
-
|
| 62 |
-
```python
|
| 63 |
-
from safetensors.torch import load_file
|
| 64 |
-
import torch
|
| 65 |
-
from meteolibre_model.models.dc_3dunet_film import UNet_DCAE_3D
|
| 66 |
-
|
| 67 |
-
# Load model weights
|
| 68 |
-
state_dict = load_file("epoch_141_rectified_flow.safetensors")
|
| 69 |
-
|
| 70 |
-
# Create model
|
| 71 |
-
model = UNet_DCAE_3D(
|
| 72 |
-
in_channels=12,
|
| 73 |
-
out_channels=12,
|
| 74 |
-
features=[64, 128, 256],
|
| 75 |
-
context_dim=4,
|
| 76 |
-
context_frames=4,
|
| 77 |
-
num_additional_resnet_blocks=2
|
| 78 |
-
)
|
| 79 |
-
|
| 80 |
-
model.load_state_dict(state_dict)
|
| 81 |
-
model.eval()
|
| 82 |
-
```
|
| 83 |
-
|
| 84 |
-
### Inference
|
| 85 |
-
|
| 86 |
-
```python
|
| 87 |
-
# Example inference code
|
| 88 |
-
with torch.no_grad():
|
| 89 |
-
generated_data = model(input_batch)
|
| 90 |
-
```
|
| 91 |
-
|
| 92 |
-
## Performance
|
| 93 |
-
|
| 94 |
-
The model checkpoints are saved at regular intervals:
|
| 95 |
-
- epoch_1_rectified_flow.safetensors through epoch_141_rectified_flow.safetensors
|
| 96 |
-
- Best performing checkpoints available for different training stages
|
| 97 |
-
|
| 98 |
-
## Limitations
|
| 99 |
-
|
| 100 |
-
- Model trained on specific meteorological dataset
|
| 101 |
-
- May not generalize to all weather patterns or regions
|
| 102 |
-
- Requires significant computational resources for inference
|
| 103 |
-
- Temporal context limited to 4 frames
|
| 104 |
-
|
| 105 |
## Ethical Considerations
|
| 106 |
|
| 107 |
- Weather forecasting models should be used responsibly
|
|
|
|
| 14 |
|
| 15 |
# MeteoLibre Rectified Flow Model
|
| 16 |
|
| 17 |
+
This is a repo with differents models used for doing weather forecasting :
|
| 18 |
+
- epoch_126_mtg_meteofrance_.safetensors (model with sat + ground station) : config is model_v0_mtg_meteofrance
|
| 19 |
|
| 20 |
## Model Description
|
| 21 |
|
| 22 |
- **Model type**: Rectified Flow Diffusion Model
|
| 23 |
+
- **Architecture**: 3D U-Net with FiLM conditioning
|
| 24 |
- **Input**: Meteorological data patches (12 channels, 3D spatio-temporal)
|
| 25 |
- **Output**: Generated weather forecast data
|
| 26 |
- **Training data**: MeteoLibre meteorological dataset
|
|
|
|
| 35 |
- Research in atmospheric science and weather prediction
|
| 36 |
- Educational purposes in machine learning for climate modeling
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
## Training
|
| 39 |
|
| 40 |
The model was trained using:
|
|
|
|
| 45 |
- **Precision**: Mixed precision (bf16)
|
| 46 |
- **Distributed training**: Multi-GPU support
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
## Ethical Considerations
|
| 49 |
|
| 50 |
- Weather forecasting models should be used responsibly
|