Other
Transformers
Safetensors
weathernext2
weather
forecasting
climate
tropical-cyclones
graph-neural-network
Instructions to use kashif/weathernext-cyclones with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kashif/weathernext-cyclones with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import WeatherNext2ForWeatherForecasting model = WeatherNext2ForWeatherForecasting.from_pretrained("kashif/weathernext-cyclones", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Fix the rollout clock ordering
Browse files
README.md
CHANGED
|
@@ -92,8 +92,9 @@ for step in range(20): # 5 days
|
|
| 92 |
with torch.no_grad():
|
| 93 |
outputs = model(**inputs)
|
| 94 |
forecast = processor.postprocess(outputs.prediction, state)
|
| 95 |
-
valid_time
|
| 96 |
state = processor.advance_state(state, forecast, valid_time)
|
|
|
|
| 97 |
```
|
| 98 |
|
| 99 |
Turning the gridded cyclone diagnostics into tracks requires the tracker from the
|
|
|
|
| 92 |
with torch.no_grad():
|
| 93 |
outputs = model(**inputs)
|
| 94 |
forecast = processor.postprocess(outputs.prediction, state)
|
| 95 |
+
# `valid_time` is the time this forecast is valid at, so it stamps the appended frame first.
|
| 96 |
state = processor.advance_state(state, forecast, valid_time)
|
| 97 |
+
valid_time = valid_time + step_seconds
|
| 98 |
```
|
| 99 |
|
| 100 |
Turning the gridded cyclone diagnostics into tracks requires the tracker from the
|