您好,登錄后才能下訂單哦!
test_txt = '/home/zcm/tensorf/siamfc-tf-master/data/Biker/groundtruth.txt'
def load_label_set(label_dir):
label_folder = open(label_dir, "r")
trainlines = label_folder.read().splitlines() #返回每一行的數據
for line in trainlines:
line = line.split(" ") #按照空格鍵分割每一行里面的數據
box = [float(line[0]), float(line[1]), float(line[2]), float(line[3])]#box讀取標簽ground_truth
label_folder.close()
return train_box
#train_box = load_train_test_set(test_txt)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。