Skip to content

Commit

Permalink
read calibration with absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
--global committed Jul 7, 2021
1 parent 42b1d20 commit bc68ff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion monoloco/network/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def load_calibration(calibration, im_size, focal_length=5.7):
[0., 0., 1.]
]
else:
with open(os.path.join('configs', 'intrinsics.yaml')) as a:
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:
configs = yaml.safe_load(a)
kk = configs[calibration]['intrinsics']
orig_size = configs[calibration]['im_size']
Expand Down
2 changes: 1 addition & 1 deletion monoloco/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def cli():
predict_parser.add_argument('--no_save', help='to show images', action='store_true')
predict_parser.add_argument('--hide_distance', help='to not show the absolute distance of people from the camera',
default=False, action='store_true')
predict_parser.add_argument('--dpi', help='image resolution', type=int, default=150)
predict_parser.add_argument('--dpi', help='image resolution', type=int, default=100)
predict_parser.add_argument('--long-edge', default=None, type=int,
help='rescale the long side of the image (aspect ratio maintained)')
predict_parser.add_argument('--white-overlay',
Expand Down

0 comments on commit bc68ff8

Please sign in to comment.