megawattage commited on
Commit
5320ab8
·
1 Parent(s): 3cdb84b

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +57 -3
  2. config.json +79 -0
  3. data_config.yaml +183 -0
  4. pytorch_model.bin +3 -0
README.md CHANGED
@@ -1,3 +1,57 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ library_name: pytorch
4
+ license: mit
5
+ ---
6
+
7
+
8
+
9
+
10
+
11
+
12
+ # PVNet2
13
+
14
+ ## Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is/does. -->
17
+ This model class uses satellite data, numerical weather predictions, and recent Grid Service Point( GSP) PV power output to forecast the near-term (~8 hours) PV power output at all GSPs. More information can be found in the model repo [1] and experimental notes in [this google doc](https://docs.google.com/document/d/1fbkfkBzp16WbnCg7RDuRDvgzInA6XQu3xh4NCjV-WDA/edit?usp=sharing).
18
+
19
+ - **Developed by:** openclimatefix
20
+ - **Model type:** Fusion model
21
+ - **Language(s) (NLP):** en
22
+ - **License:** mit
23
+
24
+
25
+ # Training Details
26
+
27
+ ## Data
28
+
29
+ <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
30
+
31
+ The model is trained on data from 2019-2022 and validated on data from 2022-2023. See experimental notes in the [the google doc](https://docs.google.com/document/d/1fbkfkBzp16WbnCg7RDuRDvgzInA6XQu3xh4NCjV-WDA/edit?usp=sharing) for more details.
32
+
33
+
34
+ ### Preprocessing
35
+
36
+ Data is prepared with the `ocf_data_sampler/torch_datasets/datasets/pvnet_uk` Dataset [2].
37
+
38
+
39
+ ## Results
40
+
41
+ The training logs for the current model can be found here:
42
+ - [https://wandb.ai/openclimatefix/NL-Solar/runs/kj6625bx](https://wandb.ai/openclimatefix/NL-Solar/runs/kj6625bx)
43
+
44
+
45
+ The training logs for all model runs of PVNet2 can be found [here](https://wandb.ai/openclimatefix/pvnet2.1).
46
+
47
+ Some experimental notes can be found at in [the google doc](https://docs.google.com/document/d/1fbkfkBzp16WbnCg7RDuRDvgzInA6XQu3xh4NCjV-WDA/edit?usp=sharing)
48
+
49
+
50
+ ### Hardware
51
+
52
+ Trained on a single NVIDIA Tesla T4
53
+
54
+ ### Software
55
+
56
+ - [1] https://github.com/openclimatefix/PVNet
57
+ - [2] https://github.com/openclimatefix/ocf-data-sampler
config.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_target_": "pvnet.models.multimodal.multimodal.Model",
3
+ "output_quantiles": [
4
+ 0.02,
5
+ 0.1,
6
+ 0.25,
7
+ 0.5,
8
+ 0.75,
9
+ 0.9,
10
+ 0.98
11
+ ],
12
+ "nwp_encoders_dict": {
13
+ "ecmwf": {
14
+ "_target_": "pvnet.models.multimodal.encoders.encoders3d.DefaultPVNet",
15
+ "_partial_": true,
16
+ "in_channels": 14,
17
+ "out_features": 64,
18
+ "number_of_conv3d_layers": 4,
19
+ "conv3d_channels": 32,
20
+ "image_size_pixels": 12
21
+ }
22
+ },
23
+ "sat_encoder": {
24
+ "_target_": "pvnet.models.multimodal.encoders.encoders3d.DefaultPVNet",
25
+ "_partial_": true,
26
+ "in_channels": 11,
27
+ "out_features": 256,
28
+ "number_of_conv3d_layers": 6,
29
+ "conv3d_channels": 32,
30
+ "image_size_pixels": 24
31
+ },
32
+ "add_image_embedding_channel": false,
33
+ "pv_encoder": {
34
+ "_target_": "pvnet.models.multimodal.site_encoders.encoders.SingleAttentionNetwork",
35
+ "_partial_": true,
36
+ "num_sites": 1,
37
+ "out_features": 64,
38
+ "num_heads": 4,
39
+ "kdim": 64,
40
+ "id_embed_dim": 64
41
+ },
42
+ "target_key": "site",
43
+ "output_network": {
44
+ "_target_": "pvnet.models.multimodal.linear_networks.networks.ResFCNet2",
45
+ "_partial_": true,
46
+ "fc_hidden_features": 128,
47
+ "n_res_blocks": 6,
48
+ "res_block_layers": 2,
49
+ "dropout_frac": 0.0
50
+ },
51
+ "embedding_dim": 16,
52
+ "include_sun": true,
53
+ "include_gsp_yield_history": false,
54
+ "forecast_minutes": 2880,
55
+ "history_minutes": 2880,
56
+ "interval_minutes": 15,
57
+ "min_sat_delay_minutes": 60,
58
+ "sat_history_minutes": 90,
59
+ "pv_history_minutes": 2880,
60
+ "pv_interval_minutes": 15,
61
+ "nwp_history_minutes": {
62
+ "ecmwf": 120
63
+ },
64
+ "nwp_forecast_minutes": {
65
+ "ecmwf": 2880
66
+ },
67
+ "nwp_interval_minutes": {
68
+ "ecmwf": 60
69
+ },
70
+ "optimizer": {
71
+ "_target_": "pvnet.optimizers.EmbAdamWReduceLROnPlateau",
72
+ "lr": 0.0001,
73
+ "weight_decay": 0.01,
74
+ "amsgrad": true,
75
+ "patience": 4,
76
+ "factor": 0.1,
77
+ "threshold": 0.002
78
+ }
79
+ }
data_config.yaml ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ general:
2
+ description: Config for training the saved PVNet model
3
+ name: PVNet current
4
+ input_data:
5
+ nwp:
6
+ ecmwf:
7
+ accum_channels:
8
+ - direct_shortwave_radiation_flux_gl
9
+ - downward_longwave_radiation_flux_gl
10
+ - downward_shortwave_radiation_flux_gl
11
+ - downward_ultraviolet_radiation_flux_gl
12
+ channels:
13
+ - cloud_cover_high
14
+ - cloud_cover_low
15
+ - cloud_cover_medium
16
+ - cloud_cover_total
17
+ - direct_shortwave_radiation_flux_gl
18
+ - downward_longwave_radiation_flux_gl
19
+ - downward_shortwave_radiation_flux_gl
20
+ - downward_ultraviolet_radiation_flux_gl
21
+ - snow_depth_gl
22
+ - temperature_sl
23
+ - total_precipitation_rate_gl
24
+ - visibility_sl
25
+ - wind_u_component_10m
26
+ - wind_v_component_10m
27
+ dropout_fraction: 1.0
28
+ dropout_timedeltas_minutes:
29
+ - -180
30
+ forecast_minutes: 3120.0
31
+ image_size_pixels_height: 12
32
+ image_size_pixels_width: 12
33
+ interval_end_minutes: 2880
34
+ interval_start_minutes: -120
35
+ max_staleness_minutes: null
36
+ normalisation_constants:
37
+ cloud_cover_high:
38
+ mean: 0.3961029052734375
39
+ std: 0.42244860529899597
40
+ cloud_cover_low:
41
+ mean: 0.44901806116104126
42
+ std: 0.3791404366493225
43
+ cloud_cover_medium:
44
+ mean: 0.3288780450820923
45
+ std: 0.38039860129356384
46
+ cloud_cover_total:
47
+ mean: 0.7049227356910706
48
+ std: 0.37487083673477173
49
+ diff_direct_shortwave_radiation_flux_gl:
50
+ mean: 469169.5
51
+ std: 818950.6875
52
+ diff_downward_longwave_radiation_flux_gl:
53
+ mean: 1136464.0
54
+ std: 131942.03125
55
+ diff_downward_shortwave_radiation_flux_gl:
56
+ mean: 420584.6875
57
+ std: 715366.3125
58
+ diff_downward_ultraviolet_radiation_flux_gl:
59
+ mean: 48265.4765625
60
+ std: 81605.25
61
+ direct_shortwave_radiation_flux_gl:
62
+ mean: 11458988.0
63
+ std: 13025427.0
64
+ downward_longwave_radiation_flux_gl:
65
+ mean: 27187026.0
66
+ std: 15855867.0
67
+ downward_shortwave_radiation_flux_gl:
68
+ mean: 11458988.0
69
+ std: 13025427.0
70
+ downward_ultraviolet_radiation_flux_gl:
71
+ mean: 1305651.25
72
+ std: 1445635.25
73
+ snow_depth_gl:
74
+ mean: 8.107526082312688e-05
75
+ std: 0.000913831521756947
76
+ temperature_sl:
77
+ mean: 283.48333740234375
78
+ std: 3.692270040512085
79
+ total_precipitation_rate_gl:
80
+ mean: 3.108070450252853e-05
81
+ std: 9.81039775069803e-05
82
+ visibility_sl:
83
+ mean: 12905302.0
84
+ std: 16294988.0
85
+ wind_u_component_100m:
86
+ mean: 2.393547296524048
87
+ std: 7.2320556640625
88
+ wind_u_component_10m:
89
+ mean: 1.7677178382873535
90
+ std: 5.531515598297119
91
+ wind_u_component_200m:
92
+ mean: 2.7963004112243652
93
+ std: 8.049470901489258
94
+ wind_v_component_100m:
95
+ mean: 1.4244288206100464
96
+ std: 6.944501876831055
97
+ wind_v_component_10m:
98
+ mean: 0.985887885093689
99
+ std: 5.411230564117432
100
+ wind_v_component_200m:
101
+ mean: 1.6010299921035767
102
+ std: 7.561611652374268
103
+ provider: ecmwf
104
+ time_resolution_minutes: 60
105
+ zarr_path: PLACEHOLDER.zarr
106
+ satellite:
107
+ channels:
108
+ - IR_016
109
+ - IR_039
110
+ - IR_087
111
+ - IR_097
112
+ - IR_108
113
+ - IR_120
114
+ - IR_134
115
+ - VIS006
116
+ - VIS008
117
+ - WV_062
118
+ - WV_073
119
+ dropout_fraction: 0.8
120
+ dropout_timedeltas_minutes:
121
+ - -5
122
+ - -10
123
+ - -15
124
+ - -20
125
+ - -25
126
+ - -30
127
+ image_size_pixels_height: 24
128
+ image_size_pixels_width: 24
129
+ interval_end_minutes: 0
130
+ interval_start_minutes: -90
131
+ live_delay_minutes: 60
132
+ normalisation_constants:
133
+ HRV:
134
+ mean: 0.09298719
135
+ std: 0.11405209
136
+ IR_016:
137
+ mean: 0.17594202
138
+ std: 0.21462157
139
+ IR_039:
140
+ mean: 0.86167645
141
+ std: 0.04618041
142
+ IR_087:
143
+ mean: 0.7719318
144
+ std: 0.06687243
145
+ IR_097:
146
+ mean: 0.8014212
147
+ std: 0.0468558
148
+ IR_108:
149
+ mean: 0.71254843
150
+ std: 0.17482725
151
+ IR_120:
152
+ mean: 0.89058584
153
+ std: 0.06115861
154
+ IR_134:
155
+ mean: 0.944365
156
+ std: 0.04492306
157
+ VIS006:
158
+ mean: 0.09633306
159
+ std: 0.12184761
160
+ VIS008:
161
+ mean: 0.11426069
162
+ std: 0.13090034
163
+ WV_062:
164
+ mean: 0.7359355
165
+ std: 0.16111417
166
+ WV_073:
167
+ mean: 0.62479186
168
+ std: 0.12924142
169
+ satellite_image_size_pixels_height: 24
170
+ satellite_image_size_pixels_width: 24
171
+ time_resolution_minutes: 5
172
+ zarr_path: PLACEHOLDER.zarr
173
+ site:
174
+ capacity_mode: variable
175
+ file_path: /home/zak/projects/PVNet/nl_solar/pv_data/netherlands_pv_data_v2.nc
176
+ interval_end_minutes: 2880
177
+ interval_start_minutes: -2880
178
+ metadata_file_path: /home/zak/projects/PVNet/nl_solar/pv_data/netherlands_metadata.csv
179
+ time_resolution_minutes: 15
180
+ solar_position:
181
+ interval_end_minutes: 2880
182
+ interval_start_minutes: -2880
183
+ time_resolution_minutes: 15
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89b7f251302eea1cf46944ad254770e4ba2ab1ef9d16a7c12c17fdd6d6554361
3
+ size 35254402