-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopt.py
69 lines (53 loc) · 2.04 KB
/
opt.py
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import argparse
parser = argparse.ArgumentParser(description='flowGRU')
parser.add_argument('--data_path',
help='path to datasets') #'/mnt/sdb/datasets/KITTI_raw_data'
parser.add_argument('--weight_path',
default='./weights/flowGRU_final/',
help='path to save weights')
parser.add_argument("--h",
default=320,
type=int,
help='size of cropped height')
parser.add_argument("--w",
default=960,
type=int,
help='size of cropped width')
parser.add_argument("--bs",
default=16,
type=int,
help='size of batch')
parser.add_argument("--bs_test",
default=1,
type=int,
help='size of batch')
parser.add_argument("--video_split",
default=50,
type=int,
help='total length of video')
parser.add_argument("--frame_split",
default=20,
type=int,
help='the number of samples to be randomly chosen')
########
parser.add_argument('--split',
type=str,
help='data split, kitti or eigen')
parser.add_argument('--gt_path',
type=str,
help='path to ground truth disparities')
parser.add_argument('--min_depth',
default=1e-3,
type=float,
help='minimum depth for evaluation')
parser.add_argument('--max_depth',
default=80,
type=float,
help='maximum depth for evaluation')
parser.add_argument('--eigen_crop',
help='if set, crops according to Eigen NIPS14',
action='store_true')
parser.add_argument('--garg_crop',
help='if set, crops according to Garg ECCV16',
action='store_true')
opt = parser.parse_args()