# Can't download imagenet datset

**URL:** <https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996>\
**Category:** Uncategorized\
**Created:** [December 4, 2019, 11:07am UTC](https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996 "2019-12-04T11:07:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dato\_nefaridze](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dato_nefaridze/32/17787_2.png) [@dato\_nefaridze](https://discuss.pytorch.org/u/dato_nefaridze)\
**Post date:** [December 4, 2019, 11:07am UTC](https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996/1 "2019-12-04T11:07:56Z")

</div>

![image](https://discuss.pytorch.org/uploads/default/original/3X/0/9/094aed2e955bd058412161cf08de5adc6d56fb58.png)  
does anybody know how to download imagenet dataset?(i know i has branches and subset datasets, suppose i want bird dataset, how can i do that?)

---

<div class="post-metadata">

**Author:** ![albanD](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alband/32/215_2.png) [@albanD](https://discuss.pytorch.org/u/albanD)\
**Post date:** [December 4, 2019, 4:13pm UTC](https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996/2 "2019-12-04T16:13:19Z")

</div>

Hi,

You should update your version of torchvision.  
Unfortunately, you cannot download imagenet dataset without logging in anymore. So you will have to manually download it. The newest version of torchvision will explain that issue if you try to download imagenet.

---

<div class="post-metadata">

**Author:** ![dato\_nefaridze](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dato_nefaridze/32/17787_2.png) [@dato\_nefaridze](https://discuss.pytorch.org/u/dato_nefaridze)\
**Post date:** [December 4, 2019, 5:33pm UTC](https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996/3 "2019-12-04T17:33:02Z")

</div>

ok but why pytorch documentation has

```auto
imagenet_data = torchvision.datasets.ImageNet('path/to/imagenet_root/')
data_loader = torch.utils.data.DataLoader(imagenet_data,
                                         batch_size=4,
                                         shuffle=True,
                                         num_workers=args.nThreads)

```

this code as a guide?

---

<div class="post-metadata">

**Author:** ![albanD](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alband/32/215_2.png) [@albanD](https://discuss.pytorch.org/u/albanD)\
**Post date:** [December 4, 2019, 6:28pm UTC](https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996/4 "2019-12-04T18:28:45Z")

</div>

Yes, there is no `download=True` in the doc. You need to give the path where it is already downloaded as we cannot do it automatically anymore.

---

<div class="post-metadata">

**Author:** ![dato\_nefaridze](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dato_nefaridze/32/17787_2.png) [@dato\_nefaridze](https://discuss.pytorch.org/u/dato_nefaridze)\
**Post date:** [December 5, 2019, 7:29am UTC](https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996/5 "2019-12-05T07:29:06Z")

</div>

if i download it manually than what’s the point of the datasets module?

---

<div class="post-metadata">

**Author:** ![albanD](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alband/32/215_2.png) [@albanD](https://discuss.pytorch.org/u/albanD)\
**Post date:** [December 5, 2019, 3:11pm UTC](https://discuss.pytorch.org/t/cant-download-imagenet-datset/62996/6 "2019-12-05T15:11:42Z")

</div>

For the publicly available datasets, we do provide them. But this one is not available to freely download online anymore.  
That wouldn’t be nice to share our own copy of their dataset.
