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
9c59ae1c
Commit
9c59ae1c
authored
Aug 17, 2020
by
tink2123
Browse files
fix bug
parent
349c51e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/modeling/architectures/rec_model.py
ppocr/modeling/architectures/rec_model.py
+1
-1
No files found.
ppocr/modeling/architectures/rec_model.py
View file @
9c59ae1c
...
@@ -58,7 +58,7 @@ class RecModel(object):
...
@@ -58,7 +58,7 @@ class RecModel(object):
self
.
loss_type
=
global_params
[
'loss_type'
]
self
.
loss_type
=
global_params
[
'loss_type'
]
self
.
image_shape
=
global_params
[
'image_shape'
]
self
.
image_shape
=
global_params
[
'image_shape'
]
self
.
max_text_length
=
global_params
[
'max_text_length'
]
self
.
max_text_length
=
global_params
[
'max_text_length'
]
if
"num_heads"
in
params
:
if
"num_heads"
in
global_
params
:
self
.
num_heads
=
global_params
[
"num_heads"
]
self
.
num_heads
=
global_params
[
"num_heads"
]
else
:
else
:
self
.
num_heads
=
None
self
.
num_heads
=
None
...
...
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