Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rink
python
Commits
93f50ff3
Commit
93f50ff3
authored
Oct 31, 2023
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
529b7e1c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/deeplearning/icing_fcn.py
+8
-6
8 additions, 6 deletions
modules/deeplearning/icing_fcn.py
with
8 additions
and
6 deletions
modules/deeplearning/icing_fcn.py
+
8
−
6
View file @
93f50ff3
...
@@ -42,7 +42,7 @@ NOISE_TRAINING = True
...
@@ -42,7 +42,7 @@ NOISE_TRAINING = True
NOISE_STDDEV
=
0.001
NOISE_STDDEV
=
0.001
DO_AUGMENT
=
True
DO_AUGMENT
=
True
img_width
=
16
IMG_WIDTH
=
16
# This is the X,Y dimension length during training
mean_std_dct
=
{}
mean_std_dct
=
{}
mean_std_file
=
ancillary_path
+
'
mean_std_lo_hi_l2.pkl
'
mean_std_file
=
ancillary_path
+
'
mean_std_lo_hi_l2.pkl
'
...
@@ -138,7 +138,8 @@ def build_residual_block_1x1(input_layer, num_filters, activation, block_name, p
...
@@ -138,7 +138,8 @@ def build_residual_block_1x1(input_layer, num_filters, activation, block_name, p
class
IcingIntensityFCN
:
class
IcingIntensityFCN
:
def
__init__
(
self
,
day_night
=
'
DAY
'
,
l1b_or_l2
=
'
both
'
,
satellite
=
'
GOES16
'
,
use_flight_altitude
=
False
,
datapath
=
None
):
def
__init__
(
self
,
y_dim_len
=
IMG_WIDTH
,
x_dim_len
=
IMG_WIDTH
,
day_night
=
'
DAY
'
,
l1b_or_l2
=
'
both
'
,
use_flight_altitude
=
False
,
datapath
=
None
):
if
day_night
==
'
DAY
'
:
if
day_night
==
'
DAY
'
:
self
.
train_params_l1b
=
train_params_l1b_day
self
.
train_params_l1b
=
train_params_l1b_day
...
@@ -159,8 +160,6 @@ class IcingIntensityFCN:
...
@@ -159,8 +160,6 @@ class IcingIntensityFCN:
elif
l1b_or_l2
==
'
l2
'
:
elif
l1b_or_l2
==
'
l2
'
:
self
.
train_params
=
train_params_l2_night
self
.
train_params
=
train_params_l2_night
# self.train_params, self.train_params_l1b, self.train_params_l2 = get_training_parameters(day_night=day_night, l1b_andor_l2=l1b_or_l2, satellite=satellite)
self
.
train_data
=
None
self
.
train_data
=
None
self
.
train_label
=
None
self
.
train_label
=
None
self
.
test_data
=
None
self
.
test_data
=
None
...
@@ -245,13 +244,16 @@ class IcingIntensityFCN:
...
@@ -245,13 +244,16 @@ class IcingIntensityFCN:
self
.
data_dct
=
None
self
.
data_dct
=
None
self
.
cth_max
=
None
self
.
cth_max
=
None
self
.
Y_DIM_LEN
=
y_dim_len
self
.
X_DIM_LEN
=
x_dim_len
n_chans
=
len
(
self
.
train_params
)
n_chans
=
len
(
self
.
train_params
)
if
TRIPLET
:
if
TRIPLET
:
n_chans
*=
3
n_chans
*=
3
self
.
X_img
=
tf
.
keras
.
Input
(
shape
=
(
None
,
None
,
n_chans
))
self
.
X_img
=
tf
.
keras
.
Input
(
shape
=
(
self
.
Y_DIM_LEN
,
self
.
X_DIM_LEN
,
n_chans
))
self
.
inputs
.
append
(
self
.
X_img
)
self
.
inputs
.
append
(
self
.
X_img
)
self
.
inputs
.
append
(
tf
.
keras
.
Input
(
shape
=
(
None
,
None
,
NumFlightLevels
)))
self
.
inputs
.
append
(
tf
.
keras
.
Input
(
shape
=
(
self
.
Y_DIM_LEN
//
IMG_WIDTH
,
self
.
X_DIM_LEN
//
IMG_WIDTH
,
NumFlightLevels
)))
self
.
flight_level
=
0
self
.
flight_level
=
0
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment