-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
46 lines (34 loc) · 929 Bytes
/
config.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
class config():
_torchDevice = None
_visualize = False
_visualizeTSDF = False
_debug = False
_groundTruth = False
@staticmethod
def getTorchDevice():
return config._torchDevice
@staticmethod
def getVisualizeBool():
return config._visualize
@staticmethod
def getVisualizeTSDFBool():
return config._visualizeTSDF
def getDebug():
return config._debug
def useGroundTruth():
return config._groundTruth
@staticmethod
def setTorchDevice(device):
config._torchDevice = device
@staticmethod
def setVisualize(vis):
config._visualize = vis
@staticmethod
def setVisualizeTSDF(vis_tsdf):
config._visualizeTSDF = vis_tsdf
@staticmethod
def setDebug(debug):
config._debug = debug
@staticmethod
def setGroundTruth(groundTruth):
config._groundTruth = groundTruth