Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Data Generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
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
Data Generator
Commits
51d85407
Commit
51d85407
authored
3 years ago
by
Martin
Browse files
Options
Downloads
Patches
Plain Diff
improve readability
parent
d732d942
No related branches found
No related tags found
1 merge request
!16
Don't filter vertical lines with rotation class
Pipeline
#74304
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kaldi_data_generator/main.py
+4
-4
4 additions, 4 deletions
kaldi_data_generator/main.py
with
4 additions
and
4 deletions
kaldi_data_generator/main.py
+
4
−
4
View file @
51d85407
...
...
@@ -771,10 +771,10 @@ def main():
logger
.
info
(
f
"
Number of skipped pages:
{
data_generator
.
skipped_pages_count
}
"
)
skipped_
ratio
=
data_generator
.
skipped_vertical_lines_count
/
(
data_generator
.
skipped_vertical
_lines_count
+
data_generator
.
accepted_lines_count
)
*
100
_
skipped_
vertical_count
=
data_generator
.
skipped_vertical_lines_count
_total_count
=
_skipped_vertical_count
+
data_generator
.
accepted
_lines_count
skipped_ratio
=
_skipped_vertical_count
/
_total_count
*
100
logger
.
info
(
f
"
Skipped
{
data_generator
.
skipped_vertical_lines_count
}
vertical lines (
{
round
(
skipped_ratio
,
2
)
}
%)
"
)
...
...
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