Prepare train data before running training - #418
Conversation
|
Can you please provide information on how or why to use this new command with the provided example data? git clone --depth 1 https://github.com/tesseract-ocr/tesstrain.git
cd tesstrain
make tesseract-langdata
mkdir tessdata_best
wget https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata -P tessdata_best
unzip ocrd-testset.zip -d data/ocrd-ground-truth
make training MODEL_NAME=ocrd TESSDATA=tessdata_best MAX_ITERATIONS=10000In which step should the user run |
|
I can provide my training set if you want to explore further this fine-tuning usage |
… train and eval sets
Added an option to prepare the train and eval indices from the ground truth before starting the training with
make prepare-data.This gives you more control over what’s used to evaluate the training, which is super handy if you have different sets of training data (like different fonts or special symbols). Now, we go through the folder and all the subfolders in the specified ground truth folder to gather all the different sets of training data, combine them into one training set, and then fine-tune what gets used for evaluation."