Skip to content
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

issue with downloading data #102

Closed
MichalisLazarou opened this issue Feb 4, 2020 · 3 comments
Closed

issue with downloading data #102

MichalisLazarou opened this issue Feb 4, 2020 · 3 comments

Comments

@MichalisLazarou
Copy link

Hey guys,

I keep getting the following errors when I run the maml_miniimagenet.py example. I did not change anything on the code do you have any idea why that might be the case.

Downloading: ./data/mini-imagenet-cache-train.pkl
Download finished
Traceback (most recent call last):
File "/home/michalislazarou/PhD/learn2learn/examples/vision/maml_miniimagenet.py", line 179, in
main()
File "/home/michalislazarou/PhD/learn2learn/examples/vision/maml_miniimagenet.py", line 66, in main
train_dataset = l2l.vision.datasets.MiniImagenet(root='./data', mode='train')
File "/home/michalislazarou/PhD/learn2learn/learn2learn/vision/datasets/mini_imagenet.py", line 94, in init
self.data = pickle.load(f)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 35778727: invalid start byte

@seba-1511
Copy link
Member

Hi @MichalisLazarou and thanks for opening the issue.

I suspect that this is due to a failure when downloading the data. (We really should check the checksum, but don't do it yet.) Could you remove the data/ folder and run the script again, please ? For reference, I've tried to copy-paste the example in colab and it seems fine there.

@MichalisLazarou
Copy link
Author

Hey @seba-1511 thanks for letting me know. It seems that the error disappears once I delete the folder or even if i reboot my PC (Ubuntu 18.04). I am unsure why it happens but at least deleting the data file everytime seems to be working, just a bit annoying to doing it. Thanks for the quick reply :)

@seba-1511
Copy link
Member

Closing, as it looks like a local installation issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants