Skip to content

Commit 4c3938d

Browse files
authored
Update labelImg_2_yolov5.py
1 parent 05df9bf commit 4c3938d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

labelImg_2_yolov5.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from tqdm import tqdm
1111

12+
1213
class LabelImgToYOLOV5(object):
1314
def __init__(self, root_dir, out_dir, val_ratio, have_test, test_ratio):
1415
self.root_dir = Path(root_dir)
@@ -61,7 +62,7 @@ def get_img_list(self):
6162

6263
def gen_image_label_dir(self, img_list):
6364
new_image_list = []
64-
for img_path in img_list:
65+
for img_path in tqdm(img_list):
6566
right_label_path = img_path.with_name(f'{img_path.stem}.txt')
6667
if right_label_path.exists():
6768
self.cp_file(img_path, dst_dir=self.out_img_dir)

0 commit comments

Comments
 (0)