Skip to content

Commit a42e00f

Browse files
fix output folder path
1 parent c9da2c2 commit a42e00f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util_scripts/calculate_map_cartucho.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
mAP_results[class_name][i] = class_mAP
111111

112112
# Save mAP results for this IoU value as a different folder name, then delete modified script
113-
os.rename('output','outputs/output_iou_%.2f' % iou_thresh)
113+
newpath = os.path.join(output_path,'output_iou_%.2f' % iou_thresh)
114+
os.rename('output',newpath)
114115
os.remove('main_modified.py')
115116

116117
# Okay, we found mAP at each IoU value! Now we just need to average the mAPs and display them.

0 commit comments

Comments
 (0)