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
8d2097ab
Commit
8d2097ab
authored
1 year ago
by
Yoann Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Remove OCR Manager class
parent
1dcb6c01
No related branches found
No related tags found
1 merge request
!244
Remove OCR Manager class
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dan/ocr/manager/training.py
+2
-7
2 additions, 7 deletions
dan/ocr/manager/training.py
with
2 additions
and
7 deletions
dan/ocr/manager/training.py
+
2
−
7
View file @
8d2097ab
...
...
@@ -903,15 +903,10 @@ class GenericTrainingManager:
return
info_dict
class
OCRManager
(
GenericTrainingManager
):
def
__init__
(
self
,
params
):
super
(
OCRManager
,
self
).
__init__
(
params
)
self
.
params
[
"
model
"
][
"
vocab_size
"
]
=
len
(
self
.
dataset
.
charset
)
class
Manager
(
OCRManager
):
class
Manager
(
GenericTrainingManager
):
def
__init__
(
self
,
params
):
super
(
Manager
,
self
).
__init__
(
params
)
self
.
params
[
"
model
"
][
"
vocab_size
"
]
=
len
(
self
.
dataset
.
charset
)
def
load_save_info
(
self
,
info_dict
):
if
"
curriculum_config
"
in
info_dict
:
...
...
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