From e7bf6c86cc2495521f772c6630f63af475a11583 Mon Sep 17 00:00:00 2001 From: zhoujun Date: Wed, 6 Jan 2021 17:07:37 +0800 Subject: [PATCH] update angle class doc (#1635) --- doc/doc_ch/angle_class.md | 7 ++++--- doc/doc_en/angle_class_en.md | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/doc_ch/angle_class.md b/doc/doc_ch/angle_class.md index 846be15f..4d7ff0d7 100644 --- a/doc/doc_ch/angle_class.md +++ b/doc/doc_ch/angle_class.md @@ -21,9 +21,8 @@ ln -sf /train_data/cls/dataset ``` " 图像文件名 图像标注信息 " - -train_data/cls/word_001.jpg 0 -train_data/cls/word_002.jpg 180 +train/word_001.jpg 0 +train/word_002.jpg 180 ``` 最终训练集应有如下文件结构: @@ -55,6 +54,8 @@ train_data/cls/word_002.jpg 180 ### 启动训练 +将准备好的txt文件和图片文件夹路径分别写入配置文件的 `Train/Eval.dataset.label_file_list` 和 `Train/Eval.dataset.data_dir` 字段下,`Train/Eval.dataset.data_dir`字段下的路径和文件里记载的图片名构成了图片的绝对路径。 + PaddleOCR提供了训练脚本、评估脚本和预测脚本。 开始训练: diff --git a/doc/doc_en/angle_class_en.md b/doc/doc_en/angle_class_en.md index e6157d16..8d932870 100644 --- a/doc/doc_en/angle_class_en.md +++ b/doc/doc_en/angle_class_en.md @@ -23,8 +23,8 @@ First put the training images in the same folder (train_images), and use a txt f ``` " Image file name Image annotation " -train_data/word_001.jpg 0 -train_data/word_002.jpg 180 +train/word_001.jpg 0 +train/word_002.jpg 180 ``` The final training set should have the following file structure: @@ -57,6 +57,7 @@ containing all images (test) and a cls_gt_test.txt. The structure of the test se ``` ### TRAINING +Write the prepared txt file and image folder path into the configuration file under the `Train/Eval.dataset.label_file_list` and `Train/Eval.dataset.data_dir` fields, the absolute path of the image consists of the `Train/Eval.dataset.data_dir` field and the image name recorded in the txt file. PaddleOCR provides training scripts, evaluation scripts, and prediction scripts. -- GitLab