Skip to content
Snippets Groups Projects
Commit 6e1824b1 authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Updated annotatoins in BATL HLDI

parent f0a13f29
No related branches found
No related tags found
1 merge request!59Added HLDI for the BATL database, added optional data normalization in FaceCropAlign
Pipeline #
......@@ -270,7 +270,10 @@ class BatlPadDatabase(PadDatabase):
if self.annotations_temp_dir: # if directory is not an empty string
with open(file_path, 'w') as json_file:
if not os.path.exists( os.path.split(file_path)[0] ):
os.makedirs( os.path.split(file_path)[0] )
with open(file_path, 'w+') as json_file:
json_file.write(json.dumps(annotations))
......
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