def print_f2_dict(d):
    print('Overall f2: {:.3f}, precision {:.3f}, recall {:.3f}'.format(d['f2'], d['precision'], d['recall']))
    for (k, iou_th) in enumerate(np.arange(0.3, 0.85, 0.05)):
        print(f'IOU {iou_th:.2f}:', end=' ')
        print('f2: {:.3f}, precision {:.3f}, recall {:.3f}'.format(d[('f2_' + str(round(iou_th, 3)))], d[('precision_' + str(round(iou_th, 3)))], d[('recall_' + str(round(iou_th, 3)))]))
def print_f2_dict(d):
    print('Overall f2: {:.3f}, precision {:.3f}, recall {:.3f}'.format(d['f2'], d['precision'], d['recall']))
    for (k, iou_th) in enumerate(np.arange(0.3, 0.85, 0.05)):
        print(f'IOU {iou_th:.2f}:', end=' ')
        print('f2: {:.3f}, precision {:.3f}, recall {:.3f}'.format(d[('f2_' + str(round(iou_th, 3)))], d[('precision_' + str(round(iou_th, 3)))], d[('recall_' + str(round(iou_th, 3)))]))