Skip to content

Commit

Permalink
change location of yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
--global committed Jul 7, 2021
1 parent 9789f3c commit b079f51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions monoloco/network/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def load_calibration(calibration, im_size, focal_length=5.7):
[0., 0., 1.]
]
else:
folders = os.path.dirname(os.path.realpath(__file__)).split(sep=os.sep)
with open(os.path.join(os.sep, *folders[:-2], 'configs', 'intrinsics.yaml')) as a:
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'intrinsics.yaml')) as a:
configs = yaml.safe_load(a)
kk = configs[calibration]['intrinsics']
orig_size = configs[calibration]['im_size']
Expand Down

0 comments on commit b079f51

Please sign in to comment.