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
099957c9
"examples/vscode:/vscode.git/clone" did not exist on "c18941b01ad0ea6b07d020f353d81153c632a374"
Unverified
Commit
099957c9
authored
Apr 27, 2021
by
littletomatodonkey
Committed by
GitHub
Apr 27, 2021
Browse files
fix eval laoder on win (#2654)
parent
c2702229
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tools/program.py
tools/program.py
+4
-1
No files found.
tools/program.py
View file @
099957c9
...
@@ -18,6 +18,7 @@ from __future__ import print_function
...
@@ -18,6 +18,7 @@ from __future__ import print_function
import
os
import
os
import
sys
import
sys
import
platform
import
yaml
import
yaml
import
time
import
time
import
shutil
import
shutil
...
@@ -338,8 +339,10 @@ def eval(model, valid_dataloader, post_process_class, eval_class,
...
@@ -338,8 +339,10 @@ def eval(model, valid_dataloader, post_process_class, eval_class,
total_frame
=
0.0
total_frame
=
0.0
total_time
=
0.0
total_time
=
0.0
pbar
=
tqdm
(
total
=
len
(
valid_dataloader
),
desc
=
'eval model:'
)
pbar
=
tqdm
(
total
=
len
(
valid_dataloader
),
desc
=
'eval model:'
)
max_iter
=
len
(
valid_dataloader
)
-
1
if
platform
.
system
(
)
==
"Windows"
else
len
(
valid_dataloader
)
for
idx
,
batch
in
enumerate
(
valid_dataloader
):
for
idx
,
batch
in
enumerate
(
valid_dataloader
):
if
idx
>=
len
(
valid_dataload
er
)
:
if
idx
>=
max_it
er
:
break
break
images
=
batch
[
0
]
images
=
batch
[
0
]
start
=
time
.
time
()
start
=
time
.
time
()
...
...
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