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
03f94a69
Unverified
Commit
03f94a69
authored
Apr 26, 2021
by
Philip Meier
Committed by
GitHub
Apr 26, 2021
Browse files
Remove fakeroot dependency of Places365 in download tests (#3730)
parent
283c7907
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
test/test_datasets_download.py
test/test_datasets_download.py
+10
-9
No files found.
test/test_datasets_download.py
View file @
03f94a69
...
...
@@ -23,7 +23,6 @@ from torchvision.datasets.utils import (
)
from
common_utils
import
get_tmp_dir
from
fakedata_generation
import
places365_root
def
limit_requests_per_time
(
min_secs_between_requests
=
2.0
):
...
...
@@ -221,14 +220,16 @@ def root():
def
places365
():
with
log_download_attempts
(
patch
=
False
)
as
urls_and_md5s
:
for
split
,
small
in
itertools
.
product
((
"train-standard"
,
"train-challenge"
,
"val"
),
(
False
,
True
)):
with
places365_root
(
split
=
split
,
small
=
small
)
as
places365
:
root
,
data
=
places365
datasets
.
Places365
(
root
,
split
=
split
,
small
=
small
,
download
=
True
)
return
make_download_configs
(
urls_and_md5s
,
name
=
"Places365"
)
return
itertools
.
chain
(
*
[
collect_download_configs
(
lambda
:
datasets
.
Places365
(
ROOT
,
split
=
split
,
small
=
small
,
download
=
True
),
name
=
f
"Places365,
{
split
}
,
{
'small'
if
small
else
'large'
}
"
,
file
=
"places365"
,
)
for
split
,
small
in
itertools
.
product
((
"train-standard"
,
"train-challenge"
,
"val"
),
(
False
,
True
))
]
)
def
caltech101
():
...
...
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