-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Description
In the classification
and video_classification
references, we cache here:
vision/references/classification/train.py
Line 108 in 6e203b4
cache_path = os.path.join("~", ".torch", "vision", "datasets", "imagefolder", h[:10] + ".pt") cache_path = os.path.join("~", ".torch", "vision", "datasets", "kinetics", h[:10] + ".pt")
However, this directory is not used by PyTorch core. Instead, ~/.cache/torch
is used. For example, torch.hub
caches in ~/.cache/torch/hub
. The datasets v2 used the same root folder and will store the datasets by default in
_HOME = os.path.join(_get_torch_home(), "datasets", "vision") |
which expands to ~/.cache/torch/datasets/vision
.
Maybe we can use ~/.cache/torch/cached_datasets
or something similar as cache path in the references?