Unverified Commit 03f94a69 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

Remove fakeroot dependency of Places365 in download tests (#3730)

parent 283c7907
......@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment