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
OpenDAS
vision
Commits
0a787e0a
Commit
0a787e0a
authored
Dec 14, 2016
by
Marat Dukhan
Browse files
Fix time per dataset in benchmark
parent
038a01fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/preprocess-bench.py
test/preprocess-bench.py
+1
-1
No files found.
test/preprocess-bench.py
View file @
0a787e0a
...
...
@@ -44,7 +44,7 @@ if __name__ == "__main__":
batch
=
next
(
train_iter
)
end_time
=
timer
()
print
(
"Performance: {dataset:.0f} minutes/dataset, {batch:.2f} secs/batch, {image:.2f} ms/image"
.
format
(
dataset
=
(
end_time
-
start_time
)
*
len
(
train_loader
)
/
(
batch_count
*
args
.
batchSize
)
/
60.0
,
dataset
=
(
end_time
-
start_time
)
*
(
float
(
len
(
train_loader
)
)
/
batch_count
/
60.0
)
,
batch
=
(
end_time
-
start_time
)
/
float
(
batch_count
),
image
=
(
end_time
-
start_time
)
/
(
batch_count
*
args
.
batchSize
)
*
1.0e+3
))
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