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
4d63e074
Commit
4d63e074
authored
1 year ago
by
Nolan
Committed by
Yoann Schneider
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove teacher_forcing_error_rate
parent
d5cfdda5
No related branches found
Branches containing commit
No related tags found
1 merge request
!131
Remove teacher_forcing_error_rate
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dan/manager/training.py
+1
-8
1 addition, 8 deletions
dan/manager/training.py
with
1 addition
and
8 deletions
dan/manager/training.py
+
1
−
8
View file @
4d63e074
...
...
@@ -1087,14 +1087,7 @@ class Manager(OCRManager):
reduced_size
=
[
s
[:
2
]
for
s
in
batch_data
[
"
imgs_reduced_shape
"
]]
y_len
=
batch_data
[
"
labels_len
"
]
# add errors in teacher forcing
if
(
"
teacher_forcing_error_rate
"
in
self
.
params
[
"
training_params
"
]
and
self
.
params
[
"
training_params
"
][
"
teacher_forcing_error_rate
"
]
is
not
None
):
error_rate
=
self
.
params
[
"
training_params
"
][
"
teacher_forcing_error_rate
"
]
simulated_y_pred
,
y_len
=
self
.
add_label_noise
(
y
,
y_len
,
error_rate
)
elif
"
label_noise_scheduler
"
in
self
.
params
[
"
training_params
"
]:
if
"
label_noise_scheduler
"
in
self
.
params
[
"
training_params
"
]:
error_rate
=
(
self
.
params
[
"
training_params
"
][
"
label_noise_scheduler
"
][
"
min_error_rate
"
...
...
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