Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Commits
ac1f954c
Commit
ac1f954c
authored
2 years ago
by
Yoann Schneider
Committed by
Mélodie Boillet
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Document training subcommands
parent
ef1e6506
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!53
Document training subcommands
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dan/ocr/line/__init__.py
+2
-2
2 additions, 2 deletions
dan/ocr/line/__init__.py
docs/usage/train.md
+8
-0
8 additions, 0 deletions
docs/usage/train.md
with
10 additions
and
2 deletions
dan/ocr/line/__init__.py
+
2
−
2
View file @
ac1f954c
...
...
@@ -7,7 +7,7 @@ from dan.ocr.line.train import run as run_train
def
add_generate_parser
(
subcommands
)
->
None
:
parser
=
subcommands
.
add_parser
(
"
generate
"
,
description
=
__doc__
,
description
=
"
Generate synthetic data to train DAN models.
"
,
help
=
"
Generate synthetic data to train DAN models.
"
,
)
parser
.
set_defaults
(
func
=
run_generate
)
...
...
@@ -16,7 +16,7 @@ def add_generate_parser(subcommands) -> None:
def
add_line_parser
(
subcommands
)
->
None
:
parser
=
subcommands
.
add_parser
(
"
line
"
,
description
=
__doc__
,
description
=
"
Train a DAN model at line level.
"
,
help
=
"
Train a DAN model at line level.
"
,
)
parser
.
set_defaults
(
func
=
run_train
)
This diff is collapsed.
Click to expand it.
docs/usage/train.md
+
8
−
0
View file @
ac1f954c
...
...
@@ -2,6 +2,14 @@
Use the
`teklia-dan train`
command to train a new DAN model.
Two subcommands are available depending on your dataset:
`line`
: Train a DAN model at line-level.
`document`
: Train a DAN model at document-level.
## Remarks (for pre-training and training)
All hyperparameters are specified and editable in the training scripts (meaning are in comments).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment