-
Notifications
You must be signed in to change notification settings - Fork 5
/
options.py
38 lines (36 loc) · 1.77 KB
/
options.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
import os
import argparse
class Options():
def __init__(self):
self.parser = argparse.ArgumentParser()
self.parser.add_argument("--saveSampleNYU",
help="save small segment of NYU Depth V2",
action="store_true",
default=False)
self.parser.add_argument("--loadSampleNYU",
help="load small segment of NYU Depth V2",
action="store_true",
default=True)
self.parser.add_argument("--refine",
help="refine existing calibration or from scratch",
action="store_true",
default=False)
self.parser.add_argument("--dataPath",
type=str,
help="path to the training data",
default="data")
self.parser.add_argument("--numPairs",
type=int,
help="number of rgbd pairs to load",
default=1)
self.parser.add_argument("--height",
type=int,
help="number of rgbd pairs to load",
default=480)
self.parser.add_argument("--width",
type=int,
help="number of rgbd pairs to load",
default=640)
def parse(self):
self.options = self.parser.parse_args()
return self.options