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
Merge requests
!126
Remove new_tokens from OCR code
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove new_tokens from OCR code
remove-new-tokens-from-ocr-code
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Thibault Lavigne
requested to merge
remove-new-tokens-from-ocr-code
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#56 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
2ed4bde2
1 commit,
1 year ago
1 file
+
0
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
dan/manager/ocr.py
+
0
−
5
Options
@@ -42,11 +42,6 @@ class OCRDatasetManager(DatasetManager):
):
self
.
synthetic_data
=
self
.
params
[
"
config
"
][
"
synthetic_data
"
]
if
"
new_tokens
"
in
params
:
self
.
charset
=
sorted
(
list
(
set
(
self
.
charset
).
union
(
set
(
params
[
"
new_tokens
"
])))
)
self
.
tokens
=
{
"
pad
"
:
params
[
"
config
"
][
"
padding_token
"
],
}
Loading