提交 0abab333 编写于 作者: H henry.xu

fix: improper path join

上级 0f5724c7
......@@ -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(":")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册