Update README.md
Browse files
README.md
CHANGED
|
@@ -1,24 +1,26 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
-
-
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
- rcan
|
| 9 |
library_name: super-image
|
| 10 |
inference: false
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# RCAN-DSC
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
This model is a modified version of [RCAN](https://arxiv.org/abs/1807.02758), originally designed for image super-resolution, adapted for use in **climate downscaling** tasks. Specifically, it is configured to process **2-channel input data** representing wind vector components (u, v) at low spatial resolution and produce higher-resolution output fields.
|
| 16 |
|
| 17 |
## 🧠 Model Description
|
| 18 |
|
| 19 |
- Based on the original RCAN architecture from `super-image`.
|
| 20 |
- `sub_mean` and `add_mean` normalization layers have been **removed**
|
| 21 |
-
- Supports **multi-channel inputs**, currently set up for **2-channel wind fields**.
|
| 22 |
|
| 23 |
|
| 24 |
## 🧪 Example
|
|
@@ -40,5 +42,8 @@ state_dict_path = hf_hub_download(repo_id="lschmidt/rcan-dsc", filename="pytorch
|
|
| 40 |
state_dict = torch.load(state_dict_path, map_location="cpu")
|
| 41 |
model.load_state_dict(state_dict, strict=False)
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 44 |
output = model(inputs)
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
+
- downscaling
|
| 5 |
+
- edsr
|
| 6 |
+
- ERA5 - COSMO-REA6
|
| 7 |
+
- wind
|
|
|
|
| 8 |
library_name: super-image
|
| 9 |
inference: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# RCAN-DSC (4× Downscaling of Wind Velocities)
|
| 13 |
+
|
| 14 |
+
This model is a custom-trained version of the [RCAN](https://arxiv.org/abs/1807.02758) model from the [`super-image`](https://github.com/eugenesiow/super-image) library.
|
| 15 |
+
It is adapted for downscaling of **2-channel ERA5 data** (e.g., wind u and v components), by a factor of 4× (trained using **COSMO-REA6** as high-resolution data).
|
| 16 |
+
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
## 🧠 Model Description
|
| 20 |
|
| 21 |
- Based on the original RCAN architecture from `super-image`.
|
| 22 |
- `sub_mean` and `add_mean` normalization layers have been **removed**
|
| 23 |
+
- Supports **multi-channel inputs**, currently set up for **2-channel wind velocity fields**.
|
| 24 |
|
| 25 |
|
| 26 |
## 🧪 Example
|
|
|
|
| 42 |
state_dict = torch.load(state_dict_path, map_location="cpu")
|
| 43 |
model.load_state_dict(state_dict, strict=False)
|
| 44 |
|
| 45 |
+
# generate sample data (B, C, W, H)
|
| 46 |
+
inputs = torch.randn(1, 2, 10, 10)
|
| 47 |
+
|
| 48 |
+
# prediction
|
| 49 |
output = model(inputs)
|