Skip to content
Snippets Groups Projects
Commit 0d4ac844 authored by Manon Blanco's avatar Manon Blanco Committed by Mélodie
Browse files

Store absolute path of images

parent 57aa0063
No related branches found
No related tags found
No related merge requests found
......@@ -63,10 +63,12 @@ class ATRDatasetFormatter:
def parse_labels(self, set_name, file_name):
return {
"img_path": os.path.join(
self.image_folder,
set_name,
f"{os.path.splitext(file_name)[0]}.{self.image_format}",
"img_path": os.path.realpath(
os.path.join(
self.image_folder,
set_name,
f"{os.path.splitext(file_name)[0]}.{self.image_format}",
)
),
"label": self.read_file(
os.path.join(self.labels_folder, set_name, file_name)
......
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