| paper | training & evaluation data | pretrained_models
This repository demonstrates how models from Scene Text Recognition (STR) Framework can solve Handwritten Text Recognition (HTR) Task. Digital Peter (TODO link), IAM and BenthamR0 datasets were selected as demonstration. This analysis shows that HTR task requires more research (<40% ACC, not all models works stable with different HTR datasets).
Public Neptune with experiments are available here
docker build . --tag dpmc-image
docker run --name dpmc-container -p 7080:8888 -e NVIDIA_VISIBLE_DEVICES=0 dpmc-image
Go to https://127.0.0.1:7080, upload prepared notebook from jupyters/running_experiments.ipynb and run experiments
- For downloading prepared datasets (
peter|bentham|iam|saintgall):
python scripts/download_dataset.py --dataset_name peter
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_T1" \
--experiment_description "T1 None-VGG-None-CTC" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "None" \
--FeatureExtraction "VGG" \
--SequenceModeling "None" \
--Prediction "CTC" \
--seed 6955
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_T2" \
--experiment_description "T2 None-ResNet-None-CTC" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "None" \
--FeatureExtraction "ResNet" \
--SequenceModeling "None" \
--Prediction "CTC" \
--seed 6955
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_T3" \
--experiment_description "T3 None-ResNet-BiLSTM-CTC" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "None" \
--FeatureExtraction "ResNet" \
--SequenceModeling "BiLSTM" \
--Prediction "CTC" \
--seed 6955
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_P1" \
--experiment_description "P1 None-RCNN-None-CTC" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "None" \
--FeatureExtraction "RCNN" \
--SequenceModeling "None" \
--Prediction "CTC" \
--seed 6955
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_CRNN" \
--experiment_description "CRNN None-VGG-BiLSTM-CTC" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "None" \
--FeatureExtraction "VGG" \
--SequenceModeling "BiLSTM" \
--Prediction "CTC" \
--seed 6955
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_GRCNN" \
--experiment_description "GRCNN None-RCNN-BiLSTM-CTC" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "None" \
--FeatureExtraction "RCNN" \
--SequenceModeling "BiLSTM" \
--Prediction "CTC" \
--seed 6955
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_R2AM" \
--experiment_description "R2AM None-RCNN-None-Attn" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "None" \
--FeatureExtraction "RCNN" \
--SequenceModeling "None" \
--Prediction "Attn" \
--seed 6955
python scripts/train.py \
--checkpoint_path "" \
--experiment_name "peter_STARNET" \
--experiment_description "STAR-Net TPS-ResNet-BiLSTM-CTC" \
--dataset_name "peter" \
--data_dir "../input" \
--output_dir "../saved_models" \
--image_w 1024 \
--image_h 128 \
--num_epochs 100 \
--bs 16 \
--num_workers 4 \
--use_progress_bar 0 \
--neptune_project "" \
--neptune_token "" \
--Transformation "TPS" \
--FeatureExtraction "ResNet" \
--SequenceModeling "BiLSTM" \
--Prediction "CTC" \
--seed 6955
This implementation has been based on repository deep-text-recognition-benchmark
