-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from NREL/gb/sup3rcc_configs
Gb/sup3rcc configs
- Loading branch information
Showing
13 changed files
with
191 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
************************************************************************** | ||
Spatiotemporal Super Resolving GAN configs for Climate Change Applications | ||
************************************************************************** | ||
|
||
This directory saves example configs for spatiotemporal super resolving GAN | ||
models for wind, solar, and temperature climate change data. All generator | ||
model configs should start with "gen_*" and should have two "_4x" tags (4 for | ||
example) that represents the spatial and temporal enhancements that the | ||
generator is designed for respectively and one "_3f" tag that represents the | ||
number of output features. | ||
|
||
For example "gen_2x_24x_2f.json" is a model that would enhance a 4km daily | ||
spatiotemporal field to 2km hourly with 2 output features. | ||
|
||
Unique model designs are utilized for each unique variable set. For example, | ||
when doing spatial super resolution of wind fields, a custom model with | ||
mid-network topography injection via a "Sup3rConcat" layer is used. For wind | ||
temporal super resolution, a 24x enhancement is used to go from daily to | ||
hourly, but for solar an 8x enhancement is used to go from 3 days to 24 hours | ||
of the middle day. Also, note that the "_trh_" model tag stands for temperature | ||
and relative humidity. | ||
|
||
These configs are only examples and are not guaranteed to be the models used in | ||
producing actual production datasets. For the final model architectures, see | ||
the global file attributes associated with sup3r output h5 files which should | ||
contain all model meta data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"hidden_layers": [ | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
|
||
{"class": "SkipConnection", "name": "big_skip"}, | ||
|
||
{"n": 16, "repeat": [ | ||
{"class": "SkipConnection", "name": "small_skip"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"class": "SkipConnection", "name": "small_skip"} | ||
] | ||
}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"class": "SkipConnection", "name": "big_skip"}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 1600, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"class": "SpatialExpansion", "spatial_mult": 5}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 1, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"hidden_layers": [ | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [2,2], [2,2], [2,2], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv3D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping3D", "cropping": 1}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
{"class": "SpatioTemporalExpansion", "temporal_mult": 3, "temporal_method": "nearest"}, | ||
|
||
{"n": 3, "repeat": [ | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv3D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping3D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
{"class": "SpatioTemporalExpansion", "temporal_mult": 2, "temporal_method": "nearest"} | ||
] | ||
}, | ||
|
||
{"n": 16, "repeat": [ | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv3D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping3D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv3D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping3D", "cropping": 2} | ||
] | ||
}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv3D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping3D", "cropping": 2}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv3D", "filters": 6, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping3D", "cropping": 2} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"hidden_layers": [ | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
|
||
{"class": "SkipConnection", "name": "big_skip_1"}, | ||
|
||
{"n": 8, "repeat": [ | ||
{"class": "SkipConnection", "name": "small_skip_1"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"class": "SkipConnection", "name": "small_skip_1"} | ||
] | ||
}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"class": "SkipConnection", "name": "big_skip_1"}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 1600, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"class": "SpatialExpansion", "spatial_mult": 5}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
|
||
{"class": "Sup3rConcat"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
|
||
{"class": "SkipConnection", "name": "big_skip_2"}, | ||
|
||
{"n": 8, "repeat": [ | ||
{"class": "SkipConnection", "name": "small_skip_2"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"alpha": 0.2, "class": "LeakyReLU"}, | ||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 64, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2}, | ||
{"class": "SkipConnection", "name": "small_skip_2"} | ||
] | ||
}, | ||
{"class": "SkipConnection", "name": "big_skip_2"}, | ||
|
||
{"class": "FlexiblePadding", "paddings": [[0,0], [3,3], [3,3], [0,0]], "mode": "REFLECT"}, | ||
{"class": "Conv2D", "filters": 6, "kernel_size": 3, "strides": 1}, | ||
{"class": "Cropping2D", "cropping": 2} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
"""SUP3R Version""" | ||
|
||
__version__ = '0.0.5' | ||
__version__ = '0.0.6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.