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
80561b15
Commit
80561b15
authored
Jul 06, 2021
by
LDOUBLEV
Browse files
x as dict
parent
202a0b5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ppocr/modeling/architectures/base_model.py
ppocr/modeling/architectures/base_model.py
+4
-1
No files found.
ppocr/modeling/architectures/base_model.py
View file @
80561b15
...
...
@@ -79,6 +79,9 @@ class BaseModel(nn.Layer):
x
=
self
.
neck
(
x
)
y
[
"neck_out"
]
=
x
x
=
self
.
head
(
x
,
targets
=
data
)
if
type
(
x
)
is
dict
:
y
.
update
(
x
)
else
:
y
[
"head_out"
]
=
x
if
self
.
return_all_feats
:
return
y
...
...
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