From 0abab3331decb25aecd28c9d6b35e1f69776a7cf Mon Sep 17 00:00:00 2001 From: "henry.xu" Date: Thu, 14 Apr 2022 20:41:27 +0800 Subject: [PATCH] fix: improper path join --- PPOCRLabel/gen_ocr_train_val_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PPOCRLabel/gen_ocr_train_val_test.py b/PPOCRLabel/gen_ocr_train_val_test.py index 03ae566c..80aa7568 100644 --- a/PPOCRLabel/gen_ocr_train_val_test.py +++ b/PPOCRLabel/gen_ocr_train_val_test.py @@ -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(":") -- GitLab