Skip to content
Snippets Groups Projects
Commit f73ffbc1 authored by Manon Blanco's avatar Manon Blanco Committed by Solene Tarride
Browse files

Store absolute path of images

parent df229f93
No related branches found
No related tags found
1 merge request!193Store absolute path of images
......@@ -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