fix: improper path join

pull/5970/head
henry.xu 2022-04-14 20:41:27 +08:00
parent 0f5724c766
commit 0abab3331d
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def splitTrainVal(root, absTrainRootPath, absValRootPath, absTestRootPath, train
if flag == "det":
imagePath = os.path.join(dataAbsPath, imageName)
elif flag == "rec":
imagePath = os.path.join(dataAbsPath, "{}\\{}".format(args.recImageDirName, imageName))
imagePath = os.path.join(dataAbsPath, args.recImageDirName, imageName)
# 按预设的比例划分训练集、验证集、测试集
trainValTestRatio = args.trainValTestRatio.split(":")