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
f87f8219
Unverified
Commit
f87f8219
authored
Apr 02, 2022
by
andyjpaddle
Committed by
GitHub
Apr 02, 2022
Browse files
fix sar bug (#5867)
parent
439c1224
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/modeling/heads/rec_sar_head.py
ppocr/modeling/heads/rec_sar_head.py
+1
-1
No files found.
ppocr/modeling/heads/rec_sar_head.py
View file @
f87f8219
...
@@ -216,7 +216,7 @@ class ParallelSARDecoder(BaseDecoder):
...
@@ -216,7 +216,7 @@ class ParallelSARDecoder(BaseDecoder):
self
.
pred_dropout
=
nn
.
Dropout
(
pred_dropout
)
self
.
pred_dropout
=
nn
.
Dropout
(
pred_dropout
)
pred_num_classes
=
self
.
num_classes
-
1
pred_num_classes
=
self
.
num_classes
-
1
if
pred_concat
:
if
pred_concat
:
fc_in_channel
=
decoder_rnn_out_size
+
d_model
+
d_
enc
fc_in_channel
=
decoder_rnn_out_size
+
d_model
+
enc
oder_rnn_out_size
else
:
else
:
fc_in_channel
=
d_model
fc_in_channel
=
d_model
self
.
prediction
=
nn
.
Linear
(
fc_in_channel
,
pred_num_classes
)
self
.
prediction
=
nn
.
Linear
(
fc_in_channel
,
pred_num_classes
)
...
...
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