-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuflow_flags.py
More file actions
29 lines (20 loc) · 1.07 KB
/
Copy pathuflow_flags.py
File metadata and controls
29 lines (20 loc) · 1.07 KB
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
"""Flags used by uflow training and evaluation."""
from absl import flags
FLAGS = flags.FLAGS
# General flags.
flags.DEFINE_string('dataset', 'moving_object',
'Dataset to use, i.e. "minecraft" or "moving_object".')
flags.DEFINE_bool(
'use_minecraft_camera_actions', True, 'If true, append camera actions and xy grid augmentation to flow layers input.')
flags.DEFINE_integer('num_epochs', 500,
'Number epochs for training.')
flags.DEFINE_integer('batch_size', 64,
'Batch size for training.')
flags.DEFINE_bool('continue_training', True , 'If true, continue training at previous checkpoint, otherwise start over.')
flags.DEFINE_string('device', 'auto',
'Device to use, i.e. "cpu" or "cuda:0", or "auto" to automatically select best GPU')
# loss flags
flags.DEFINE_float('weight_smooth1', 0.0001, 'Weight for smoothness loss.')
flags.DEFINE_float('smoothness_edge_constant', 100.,
'Edge constant for smoothness loss.')
flags.DEFINE_float('weight_ssim', 0.00, 'Weight for SSIM loss.')