Skip to content

Commit b1c32b7

Browse files
committed
Merge branch 'main' of https://github.com/RapidAI/YOLO2COCO
2 parents a43d6f3 + 4c3938d commit b1c32b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labelImg_2_yolov5.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import shutil
88
from pathlib import Path
99

10+
from tqdm import tqdm
11+
1012

1113
class LabelImgToYOLOV5(object):
1214
def __init__(self, root_dir, out_dir, val_ratio, have_test, test_ratio):
@@ -60,7 +62,7 @@ def get_img_list(self):
6062

6163
def gen_image_label_dir(self, img_list):
6264
new_image_list = []
63-
for img_path in img_list:
65+
for img_path in tqdm(img_list):
6466
right_label_path = img_path.with_name(f'{img_path.stem}.txt')
6567
if right_label_path.exists() \
6668
and self.read_txt(str(right_label_path)):

0 commit comments

Comments
 (0)