You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,15 +11,20 @@ This is a re-implementation of the CRNN network, build by TensorFlow 2. This rep
11
11
12
12
This repo aims to build a simple, efficient text recognize network by using the various components of TensorFlow 2. The model build by the Keras API, the data pipeline build by `tf.data`, and training with `model.fit`, so we can use most of the functions provided by TensorFlow 2, such as `Tensorboard`, `Distribution strategy`, `TensorFlow Profiler` etc.
13
13
14
+
## Installation
15
+
16
+
```bash
17
+
$ pip install -r requirements.txt
18
+
```
19
+
14
20
## Demo
15
21
16
22
Here I provide an example model that trained on the Mjsynth dataset, this model can only predict 0-9 and a-z(ignore case).
@@ -38,12 +43,6 @@ About decode methods, sometimes the beam search method will be better than the g
38
43
39
44
Before you start training, maybe you should [prepare](#Data-prepare) data first. All predictable characters are defined by the [table.txt](example/table.txt) file. The configuration of the training process is defined by the [yml](configs/mjsynth.yml) file.
40
45
41
-
### Installation
42
-
43
-
```bash
44
-
$ pip install -r requirements.txt
45
-
```
46
-
47
46
This training script uses all GPUs by default, if you want to use a specific GPU, please set the `CUDA_VISIBLE_DEVICES` parameter.
48
47
49
48
```bash
@@ -89,15 +88,15 @@ We should write the image path and its corresponding label to a text file in a c
There are many components here to help us do other things. For example, deploy by `Tensorflow serving`. Before you deploy, you can pick up a good weight, and convertes model to `SavedModel` format by this command, it will add the post processing layer in the last and cull the optimizer:
0 commit comments