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
2a0c3d4d
Unverified
Commit
2a0c3d4d
authored
Jan 31, 2021
by
xiaoting
Committed by
GitHub
Jan 31, 2021
Browse files
fix eval mode without srn (#1889)
* fix base model * fix start time
parent
e40100c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tools/program.py
tools/program.py
+5
-2
No files found.
tools/program.py
View file @
2a0c3d4d
...
@@ -326,9 +326,12 @@ def eval(model, valid_dataloader, post_process_class, eval_class):
...
@@ -326,9 +326,12 @@ def eval(model, valid_dataloader, post_process_class, eval_class):
if
idx
>=
len
(
valid_dataloader
):
if
idx
>=
len
(
valid_dataloader
):
break
break
images
=
batch
[
0
]
images
=
batch
[
0
]
others
=
batch
[
-
4
:]
start
=
time
.
time
()
start
=
time
.
time
()
preds
=
model
(
images
,
others
)
if
"SRN"
in
str
(
model
.
head
):
others
=
batch
[
-
4
:]
preds
=
model
(
images
,
others
)
else
:
preds
=
model
(
images
)
batch
=
[
item
.
numpy
()
for
item
in
batch
]
batch
=
[
item
.
numpy
()
for
item
in
batch
]
# Obtain usable results from post-processing methods
# Obtain usable results from post-processing methods
...
...
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