I want to download a dataset from a specific url to specific path.
I tried the following:
    from torchvision.datasets.utils import download_and_extract_archive

    ## download mini-imagenet
    url = 'https://drive.google.com/file/d/1rV3aj_hgfNTfCakffpPm7Vhpr1in87CR'
    filename = 'miniImagenet.tgz'
    root = '~/tmp/'
    download_and_extract_archive(url, root, filename)

but it didn’t work.
Why? How do we fix it?
Error:
Traceback (most recent call last):
  File "/Users/me/pytorch_playground.py", line 79, in <module>
    download_mini_imagenet()
  File "/Users/me/pytorch_playground.py", line 72, in download_mini_imagenet
    download_and_extract_archive(url, root, filename)
  File "/Users/me/lib/python3.7/site-packages/torchvision/datasets/utils.py", line 268, in download_and_extract_archive
    extract_archive(archive, extract_root, remove_finished)
  File "/Users/me/lib/python3.7/site-packages/torchvision/datasets/utils.py", line 250, in extract_archive
    raise ValueError("Extraction of {} not supported".format(from_path))
ValueError: Extraction of /Users/me/tmp/1rV3aj_hgfNTfCakffpPm7Vhpr1in87CR not supported


related gitissue: https://github.com/pytorch/vision/issues/1028 13