Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VIVAS Viet OCR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cao Duc Anh
VIVAS Viet OCR
Commits
e61ef9b9
Commit
e61ef9b9
authored
Jul 23, 2024
by
Cao Duc Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit readme
parent
9a3a4aa1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+3
-3
config.yml
config.yml
+1
-1
No files found.
README.md
View file @
e61ef9b9
...
...
@@ -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
```
...
...
config.yml
View file @
e61ef9b9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment