Commit e61ef9b9 authored by Cao Duc Anh's avatar Cao Duc Anh

edit readme

parent 9a3a4aa1
......@@ -17,8 +17,7 @@ images/20140603_0003_BCCTC_tg_12.png chăng đó là kết quả hoàn hảo tro
```
### 2. Config
Chỉnh sửa file config.yml nếu cần. <br>
Các thông tin cần lưu ý:
Chỉnh sửa file **config.yml**. Các thông tin cần lưu ý:
```
dataset:
image_height: 32
......@@ -34,7 +33,8 @@ trainer:
print_every: 20
valid_every: 20
```
metrics: số mẫu được dùng để valid
metrics: số mẫu được dùng để tính acc full seq và acc per char, <= len(test_annotation). <br>
test_annotation dùng để tính valid loss.
### 3. Run training
```
......
......@@ -48,7 +48,7 @@ pretrain: https://vocr.vn/data/vietocr/vgg_transformer.pth
quiet: false
seq_modeling: transformer
trainer:
batch_size: 1
batch_size: 8
checkpoint: ./checkpoint/transformerocr_checkpoint.pth
export: ./weights/transformerocr.pth
iters: 20000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment