From b079f51b60f30f452483eccf8157eb8484826ff2 Mon Sep 17 00:00:00 2001 From: --global <--global> Date: Wed, 7 Jul 2021 14:29:59 +0100 Subject: [PATCH] change location of yaml --- {configs => monoloco/network}/intrinsics.yaml | 0 monoloco/network/process.py | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) rename {configs => monoloco/network}/intrinsics.yaml (100%) diff --git a/configs/intrinsics.yaml b/monoloco/network/intrinsics.yaml similarity index 100% rename from configs/intrinsics.yaml rename to monoloco/network/intrinsics.yaml diff --git a/monoloco/network/process.py b/monoloco/network/process.py index 592f75f..e7515f1 100644 --- a/monoloco/network/process.py +++ b/monoloco/network/process.py @@ -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']