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
!206
Something went wrong on our end
Always use 1D and 2D positional embedding
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Always use 1D and 2D positional embedding
fix-positional-embedding
into
main
Overview
0
Commits
1
Pipelines
0
Changes
6
Merged
Manon Blanco
requested to merge
fix-positional-embedding
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
6
Expand
Refs
#133 (closed)
0
0
Merge request reports
Viewing commit
f0a6e38c
Show latest version
6 files
+
2
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
Verified
f0a6e38c
Always use 1D and 2D positional embedding
· f0a6e38c
Manon Blanco
authored
1 year ago
dan/ocr/document/train.py
+
0
−
2
Options
@@ -151,8 +151,6 @@ def get_config():
"
dec_pred_dropout
"
:
0.1
,
# dropout rate before decision layer
"
dec_att_dropout
"
:
0.1
,
# dropout rate in multi head attention
"
dec_dim_feedforward
"
:
256
,
# number of dimension for feedforward layer in transformer decoder layers
"
use_2d_pe
"
:
True
,
# use 2D positional embedding
"
use_1d_pe
"
:
True
,
# use 1D positional embedding
"
attention_win
"
:
100
,
# length of attention window
# Curriculum dropout
"
dropout_scheduler
"
:
{
Loading