打印data_list
This commit is contained in:
parent
159a8f2e1d
commit
f811a51af0
@ -181,14 +181,18 @@ def get_file(ori_path: str, type_list: Union[object,str]):
|
|||||||
for img in imgs[0:1]:
|
for img in imgs[0:1]:
|
||||||
path = ori_path + 'images/' +img
|
path = ori_path + 'images/' +img
|
||||||
# print(os.path.exists(path))
|
# print(os.path.exists(path))
|
||||||
|
print('图像路径',path)
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
test_files.append(path)
|
test_files.append(path)
|
||||||
|
print('1111')
|
||||||
#label = ori_path + 'labels/' + os.path.split(path)[1]
|
#label = ori_path + 'labels/' + os.path.split(path)[1]
|
||||||
(filename1, extension) = os.path.splitext(img) # 文件名与后缀名分开
|
(filename1, extension) = os.path.splitext(img) # 文件名与后缀名分开
|
||||||
label = ori_path + 'labels/' + filename1 + '.json'
|
label = ori_path + 'labels/' + filename1 + '.json'
|
||||||
|
print('标签',label)
|
||||||
if label is not None:
|
if label is not None:
|
||||||
#train_files.append(label)
|
#train_files.append(label)
|
||||||
test_files.append(label)
|
test_files.append(label)
|
||||||
|
print('2222')
|
||||||
for img in imgs[1:]:
|
for img in imgs[1:]:
|
||||||
path = ori_path + 'images/' +img
|
path = ori_path + 'images/' +img
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
Loading…
Reference in New Issue
Block a user