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
59baae99
Unverified
Commit
59baae99
authored
Nov 18, 2021
by
Philip Meier
Committed by
GitHub
Nov 18, 2021
Browse files
remove debug artifacts from prototype dataset tests (#4958)
parent
29e0f66a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
test/builtin_dataset_mocks.py
test/builtin_dataset_mocks.py
+0
-3
test/test_prototype_builtin_datasets.py
test/test_prototype_builtin_datasets.py
+0
-2
No files found.
test/builtin_dataset_mocks.py
View file @
59baae99
...
...
@@ -144,9 +144,6 @@ class MNISTFakedata:
@
classmethod
def
_create_binary_file
(
cls
,
root
,
filename
,
*
,
num_samples
,
shape
,
dtype
,
compressor
,
low
=
0
,
high
):
with
compressor
(
root
/
filename
,
"wb"
)
as
fh
:
if
dtype
!=
torch
.
uint8
:
print
()
for
meta
in
(
cls
.
_magic
(
dtype
,
len
(
shape
)),
num_samples
,
*
shape
):
fh
.
write
(
cls
.
_encode
(
meta
))
...
...
test/test_prototype_builtin_datasets.py
View file @
59baae99
...
...
@@ -34,8 +34,6 @@ def dataset_parametrization(*names, decoder=to_bytes):
params
=
[]
for
name
in
names
:
for
config
in
datasets
.
info
(
name
).
_configs
:
if
name
==
"imagenet"
and
config
.
split
==
"test"
:
print
()
id
=
f
"
{
name
}
-
{
'-'
.
join
([
str
(
value
)
for
value
in
config
.
values
()])
}
"
dataset
,
mock_info
=
builtin_dataset_mocks
.
load
(
name
,
decoder
=
decoder
,
**
config
)
params
.
append
(
pytest
.
param
(
dataset
,
mock_info
,
id
=
id
))
...
...
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