Skip to content

Bug in the new version 0.2.2 while loading datasets #769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
felstormrage opened this issue Mar 1, 2019 · 1 comment
Closed

Bug in the new version 0.2.2 while loading datasets #769

felstormrage opened this issue Mar 1, 2019 · 1 comment
Labels

Comments

@felstormrage
Copy link

Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to /home/nithin/Git/Datasets/MNIST/raw/train-images-idx3-ubyte.gz


TypeError Traceback (most recent call last)
in
2 train=True,
3 transform=transforms.ToTensor(),
----> 4 download=True)
5 test_dataset = dsets.MNIST(root='/home/nithin/Git/Datasets',
6 train=False,

~/.conda/envs/ml/lib/python3.7/site-packages/torchvision/datasets/mnist.py in init(self, root, train, transform, target_transform, download)
66
67 if download:
---> 68 self.download()
69
70 if not self._check_exists():

~/.conda/envs/ml/lib/python3.7/site-packages/torchvision/datasets/mnist.py in download(self)
141 filename = url.rpartition('/')[2]
142 file_path = os.path.join(self.raw_folder, filename)
--> 143 download_url(url, root=self.raw_folder, filename=filename, md5=None)
144 self.extract_gzip(gzip_path=file_path, remove_finished=True)
145

~/.conda/envs/ml/lib/python3.7/site-packages/torchvision/datasets/utils.py in download_url(url, root, filename, md5)
71 urllib.request.urlretrieve(
72 url, fpath,
---> 73 reporthook=gen_bar_updater(tqdm())
74 )
75 except OSError:

TypeError: init() missing 1 required positional argument: 'total'

@fmassa
Copy link
Member

fmassa commented Mar 1, 2019

Hi,

Thanks for the bug report. This can be solved for now by installing tqdm.
I'll get this fixed, sorry for the trouble!

@fmassa fmassa added the bug label Mar 1, 2019
@fmassa fmassa mentioned this issue Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants