Skip to content

Commit bc68ff8

Browse files
author
--global
committed
read calibration with absolute path
1 parent 42b1d20 commit bc68ff8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

monoloco/network/process.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def load_calibration(calibration, im_size, focal_length=5.7):
7575
[0., 0., 1.]
7676
]
7777
else:
78-
with open(os.path.join('configs', 'intrinsics.yaml')) as a:
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:
7980
configs = yaml.safe_load(a)
8081
kk = configs[calibration]['intrinsics']
8182
orig_size = configs[calibration]['im_size']

monoloco/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def cli():
2828
predict_parser.add_argument('--no_save', help='to show images', action='store_true')
2929
predict_parser.add_argument('--hide_distance', help='to not show the absolute distance of people from the camera',
3030
default=False, action='store_true')
31-
predict_parser.add_argument('--dpi', help='image resolution', type=int, default=150)
31+
predict_parser.add_argument('--dpi', help='image resolution', type=int, default=100)
3232
predict_parser.add_argument('--long-edge', default=None, type=int,
3333
help='rescale the long side of the image (aspect ratio maintained)')
3434
predict_parser.add_argument('--white-overlay',

0 commit comments

Comments
 (0)