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

Nits

parent 957ed325
No related branches found
No related tags found
1 merge request!193Store absolute path of images
......@@ -63,11 +63,13 @@ 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}",
).realpath(),
"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