Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
13757fe1
Unverified
Commit
13757fe1
authored
Oct 29, 2021
by
xiaoting
Committed by
GitHub
Oct 29, 2021
Browse files
Merge pull request #4495 from andyjpaddle/fix_sar_cpu_train
fix sar train on cpu
parents
28b52539
92c9eaf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
ppocr/modeling/heads/rec_sar_head.py
ppocr/modeling/heads/rec_sar_head.py
+0
-1
No files found.
ppocr/modeling/heads/rec_sar_head.py
View file @
13757fe1
...
@@ -275,7 +275,6 @@ class ParallelSARDecoder(BaseDecoder):
...
@@ -275,7 +275,6 @@ class ParallelSARDecoder(BaseDecoder):
if
img_metas
is
not
None
and
self
.
mask
:
if
img_metas
is
not
None
and
self
.
mask
:
valid_ratios
=
img_metas
[
-
1
]
valid_ratios
=
img_metas
[
-
1
]
label
=
label
.
cuda
()
lab_embedding
=
self
.
embedding
(
label
)
lab_embedding
=
self
.
embedding
(
label
)
# bsz * seq_len * emb_dim
# bsz * seq_len * emb_dim
out_enc
=
out_enc
.
unsqueeze
(
1
)
out_enc
=
out_enc
.
unsqueeze
(
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment