-
Notifications
You must be signed in to change notification settings - Fork 3
/
.env.example
50 lines (41 loc) · 1.04 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# specify directory as data io info
BASEDIR = '/home/ubuntu/hydrafloods'
MODEL_NAME = 'vgg19_custom_unet_model'
MODEL_CHECKPOINT_NAME = 'bestModelWeights'
# specify some data structure
FEATURES = ['VH', 'VV']
LABELS = ['class']
# for pushing as eeified
LABEL = 'class'
# patch size for training
PATCH_SHAPE = (256, 256)
# Sizes of the training and evaluation datasets.
# based on sizes of exported data and spliting performed earlier
# ~13542 samples
# ~70% are training, ~20% are testing, ~10% are validation
TRAIN_SIZE = 9480
TEST_SIZE = 2709
VAL_SIZE = 1354
# Specify model training parameters.
BATCH_SIZE = 32
EPOCHS = 50
BUFFER_SIZE = 9500
RAMPUP_EPOCHS = 20
SUSTAIN_EPOCHS = 15
# Rates
USE_ADJUSTED_LR = True
MAX_LR = 1E-3
MID_LR = 3E-4
MIN_LR = 1E-4
LEARNING_RATE = 0.001
DROPOUT_RATE = 0.2
# other params w/ notes
ACTIVATION_FN = 'softmax'
CALLBACK_PARAMETER = 'val_loss'
COMBINATION = 'concat'
OUT_CLASSES_NUM = 2
# GCS settings
GCS_PROJECT = 'servir-ee'
GCS_BUCKET = 'mekong-tf'
GCS_EEIFIED_DIR = 'eeified'
GCS_CHECKPOINT_DIR = 'checkpoints'