Skip to content

Commit

Permalink
update makedir
Browse files Browse the repository at this point in the history
  • Loading branch information
pshivraj authored Mar 8, 2019
1 parent 70d36be commit 3fb4ce3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def generate_synthetic_dataset(
timestamp = time.strftime("%Y_%m_%d_%H_%M_%S", time.gmtime())
dataset_name = "synth_data_{}".format(timestamp)
save_path = os.path.join(output_dir, dataset_name)
os.mkdirs(save_path)
os.makedirs(save_path)
with open(save_path + "/id_map.json", "w") as id_file:
id_class_map = {v:k for k, v in self.class_map.items()}
json.dump(id_class_map, id_file, indent=4)
Expand Down

0 comments on commit 3fb4ce3

Please sign in to comment.