3636 pip install -r references/requirements.txt
3737 sudo apt-get update && sudo apt-get install fonts-freefont-ttf -y
3838 - name : Train for a short epoch
39- run : python references/classification/train_pytorch_character .py vit_s -b 32 --val-samples 1 --train-samples 1 --epochs 1
39+ run : python references/classification/train_character .py vit_s -b 32 --val-samples 1 --train-samples 1 --epochs 1
4040
4141 train-orientation-classification :
4242 runs-on : ${{ matrix.os }}
7575 sudo apt-get update && sudo apt-get install unzip -y
7676 unzip toy_recogition_set-036a4d80.zip -d reco_set
7777 - name : Train for a short epoch (document orientation)
78- run : python references/classification/train_pytorch_orientation .py resnet18 --type page --train_path ./det_set --val_path ./det_set -b 2 --epochs 1
78+ run : python references/classification/train_orientation .py resnet18 --type page --train_path ./det_set --val_path ./det_set -b 2 --epochs 1
7979 - name : Train for a short epoch (crop orientation)
80- run : python references/classification/train_pytorch_orientation .py resnet18 --type crop --train_path ./reco_set --val_path ./reco_set -b 4 --epochs 1
80+ run : python references/classification/train_orientation .py resnet18 --type crop --train_path ./reco_set --val_path ./reco_set -b 4 --epochs 1
8181
8282 train-text-recognition :
8383 runs-on : ${{ matrix.os }}
@@ -111,7 +111,7 @@ jobs:
111111 sudo apt-get update && sudo apt-get install unzip -y
112112 unzip toy_recogition_set-036a4d80.zip -d reco_set
113113 - name : Train for a short epoch
114- run : python references/recognition/train_pytorch .py crnn_mobilenet_v3_small --train_path ./reco_set --val_path ./reco_set -b 4 --epochs 1
114+ run : python references/recognition/train .py crnn_mobilenet_v3_small --train_path ./reco_set --val_path ./reco_set -b 4 --epochs 1
115115
116116 evaluate-text-recognition :
117117 runs-on : ${{ matrix.os }}
@@ -137,7 +137,7 @@ jobs:
137137 python -m pip install --upgrade pip
138138 pip install -e .[viz,html] --upgrade
139139 - name : Evaluate text recognition
140- run : python references/recognition/evaluate_pytorch .py crnn_mobilenet_v3_small --dataset SVT -b 32
140+ run : python references/recognition/evaluate .py crnn_mobilenet_v3_small --dataset SVT -b 32
141141
142142 latency-text-recognition :
143143 runs-on : ${{ matrix.os }}
@@ -163,7 +163,7 @@ jobs:
163163 python -m pip install --upgrade pip
164164 pip install -e .[viz,html] --upgrade
165165 - name : Benchmark latency
166- run : python references/recognition/latency_pytorch .py crnn_mobilenet_v3_small --it 5
166+ run : python references/recognition/latency .py crnn_mobilenet_v3_small --it 5
167167
168168 train-text-detection :
169169 runs-on : ${{ matrix.os }}
@@ -197,7 +197,7 @@ jobs:
197197 sudo apt-get update && sudo apt-get install unzip -y
198198 unzip toy_detection_set-bbbb4243.zip -d det_set
199199 - name : Train for a short epoch
200- run : python references/detection/train_pytorch .py db_mobilenet_v3_large --train_path ./det_set --val_path ./det_set -b 2 --epochs 1
200+ run : python references/detection/train .py db_mobilenet_v3_large --train_path ./det_set --val_path ./det_set -b 2 --epochs 1
201201
202202 evaluate-text-detection :
203203 runs-on : ${{ matrix.os }}
@@ -224,7 +224,7 @@ jobs:
224224 pip install -e .[viz,html] --upgrade
225225 pip install -r references/requirements.txt
226226 - name : Evaluate text detection
227- run : python references/detection/evaluate_pytorch .py db_mobilenet_v3_large
227+ run : python references/detection/evaluate .py db_mobilenet_v3_large
228228
229229 latency-text-detection :
230230 runs-on : ${{ matrix.os }}
@@ -250,4 +250,4 @@ jobs:
250250 python -m pip install --upgrade pip
251251 pip install -e .[viz,html] --upgrade
252252 - name : Benchmark latency
253- run : python references/detection/latency_pytorch .py db_mobilenet_v3_large --it 5 --size 512
253+ run : python references/detection/latency .py db_mobilenet_v3_large --it 5 --size 512
0 commit comments