Skip to content

Commit 7497b96

Browse files
committed
fix the top
1 parent 98f6dba commit 7497b96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yolo2coco.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
parser=argparse.ArgumentParser()
8-
parser.add_argument('--yolo-path',type=str,default='yolov5/runs/detect/exp/labels')
8+
parser.add_argument('--yolo-path',type=str,default='yolov5/runs/detect/exp2/labels')
99
parser.add_argument('--data-root',type=str,default='/eva_data/zchin/vrdl_hw2_data')
1010
args=parser.parse_args()
1111

@@ -41,7 +41,7 @@
4141
width*=w
4242
height*=h
4343
min_x=x_center-width/2
44-
min_y=y_center/2
44+
min_y=y_center-height/2
4545

4646
det_box_info['bbox']=(tuple((min_x,min_y,width,height)))
4747
det_box_info['score']=float(line[5])

0 commit comments

Comments
 (0)