This commit is contained in:
2025-06-21 13:41:13 +08:00
parent e474ab5f9f
commit b0946fab2d
5 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ import random
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--img_path', default='/home/lc/data_center/gift/ori_image/images', type=str,
parser.add_argument('--img_path', default='/home/lc/data_center/gift/v2/images', type=str,
help='input xml label path') # 图片存放地址
# 数据集的划分地址选择自己数据下的ImageSets/Main
parser.add_argument('--txt_path', default='/home/lc/data_center/gift/yolov10_data/Main', type=str,

View File

@ -76,9 +76,9 @@ def convert_annotation(image_id, imgname_list, label_path, Annotation_path, imag
# abs_path = os.getcwd()
image_path = '/home/lc/data_center/gift/ori_image/images/' # img实际存放地址
Annotation_path = '/home/lc/data_center/gift/ori_image/xmls/' # xml实际存放地址
label_path = '/home/lc/data_center/gift/ori_image/labels/' # 保存路径
image_path = '/home/lc/data_center/gift/v2/images/' # img实际存放地址
Annotation_path = '/home/lc/data_center/gift/v2/xmls/' # xml实际存放地址
label_path = '/home/lc/data_center/gift/v2/labels/' # 保存路径
# wd = getcwd()
imgname_list = []