News!!! Recognition branch now is added into model. The whole project has beed optimized and refactored.
- ICDAR Dataset
- SynthText 800K Dataset
- detection branch (verified on the training set, It works!)
- recognition branch (verified)
- eval
- multi-gpu training
- reasonable project structure
- wandb
- pytorch_lightning
This is a PyTorch implementation of FOTS.
-
build tools
./build.sh
-
prepare Dataset
-
create virtual env, you may need conda
conda create --name fots --file spec-file.txt conda activate fots pip install -r reqs.txt
# quite easy, for single gpu training set gpus to [0]. 0 is the id of your gpu.
python train.py -c pretrain.json
python train.py -c finetune.json
python eval.py
-c
finetune.json
-m
<your ckpt>
-i
<icdar2015 folder contains train and test>
--detection
-o
./results
--cuda
with --detection
flag to evaluate detection only or without flag to evaluate e2e
- https://github.com/SakuraRiven/EAST (Some codes are copied from here.)
- https://github.com/chenjun2hao/FOTS.pytorch.git (ROIRotate)