Skip to content
Snippets Groups Projects
Commit f6ac48de authored by Vishi Nehra's avatar Vishi Nehra
Browse files

Fixed handling relative paths #294

parent 2bab97fb
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ class Video(object):
self.gt_traj = gt_rect
self.attr = attr
self.pred_trajs = {}
self.img_names = [os.path.join(root, x) for x in img_names]
self.img_names = [os.path.join(os.path.abspath(root), os.path.abspath(x)) for x in img_names]
self.imgs = None
if load_img:
......
......@@ -50,7 +50,7 @@ class VOTVideo(Video):
self.tag_names = list(self.tags.keys())
if not load_img:
img_name = os.path.join(root, self.img_names[0])
img_name = os.path.join(os.path.abspath(root), os.path.abspath(self.img_names[0]))
img = np.array(Image.open(img_name), np.uint8)
self.width = img.shape[1]
self.height = img.shape[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment