Skip to content

Commit b079f51

Browse files
author
--global
committed
change location of yaml
1 parent 9789f3c commit b079f51

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

monoloco/network/process.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def load_calibration(calibration, im_size, focal_length=5.7):
7575
[0., 0., 1.]
7676
]
7777
else:
78-
folders = os.path.dirname(os.path.realpath(__file__)).split(sep=os.sep)
79-
with open(os.path.join(os.sep, *folders[:-2], 'configs', 'intrinsics.yaml')) as a:
78+
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'intrinsics.yaml')) as a:
8079
configs = yaml.safe_load(a)
8180
kk = configs[calibration]['intrinsics']
8281
orig_size = configs[calibration]['im_size']

0 commit comments

Comments
 (0)