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
d146fbcc
Unverified
Commit
d146fbcc
authored
Jul 24, 2020
by
dyning
Committed by
GitHub
Jul 24, 2020
Browse files
Merge pull request #417 from BeyondYourself/develop
The if condition is not sufficient when train the det model
parents
02d8d51d
dcd2626e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/train.py
tools/train.py
+1
-1
No files found.
tools/train.py
View file @
d146fbcc
...
@@ -74,7 +74,7 @@ def main():
...
@@ -74,7 +74,7 @@ def main():
# dump mode structure
# dump mode structure
if
config
[
'Global'
][
'debug'
]:
if
config
[
'Global'
][
'debug'
]:
if
'attention'
in
config
[
'Global'
][
'loss_type'
]:
if
train_alg_type
==
'rec'
and
'attention'
in
config
[
'Global'
][
'loss_type'
]:
logger
.
warning
(
'Does not suport dump attention...'
)
logger
.
warning
(
'Does not suport dump attention...'
)
else
:
else
:
summary
(
train_program
)
summary
(
train_program
)
...
...
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