-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
29 lines (22 loc) · 984 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
from os import environ, getenv
if environ.get('STREET_VIEW_DATA_DIR') is not None:
data_dir = getenv("STREET_VIEW_DATA_DIR")
else:
data_dir = '../data' # Put your data directory here
images_dir = f'{data_dir}/images'
sqlite_path = f'{data_dir}/street_view_cache'
openmvg_data = f'{data_dir}/openmvg'
start_frame = 4900 #3500
end_frame = 5100 # 8100
segmentation_model_dir = './localization/enet-cityscapes'
recording_dir = f'{data_dir}/recordings/2021-11-10T13-16-47'
use_pickled_images = False
if environ.get('USE_PICKLED_IMAGES') is not None:
use_pickled_images = False # TODO: Revert when pickling works again
api_key = 'AIzaSyBjB2MBFlKlTIAbnG8D_t1oPqfObdR0xAA' # TODO: Deactive the API key before we make the repo public
FRAME_WIDTH = 1920
FRAME_HEIGHT = 1440
SCALE_FACTOR = 1
scaled_frame_width = int(FRAME_WIDTH/SCALE_FACTOR)
scaled_frame_height = int(FRAME_HEIGHT/SCALE_FACTOR)
OPENMVG_SFM_BIN = f'{getenv("HOME")}/github/openmvg_build/Linux-x86_64-RELEASE'