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

deeplearning.net is down; datasets unreachable #577

Open
Lauler opened this issue Nov 22, 2020 · 2 comments
Open

deeplearning.net is down; datasets unreachable #577

Lauler opened this issue Nov 22, 2020 · 2 comments

Comments

@Lauler
Copy link

Lauler commented Nov 22, 2020

The website http://deeplearning.net has been down for a while, meaning it has been impossible for several days to download some of the datasets in the tutorial (MNIST for example) through the provided download links.

@garyhlai
Copy link

+1

@garyhlai
Copy link

garyhlai commented Jan 24, 2021

For MNIST, here is a workaround using Torchvision's dataset:

def get_data():
    import os
    import torchvision.datasets as datasets
    root = '../data'
    if not os.path.exists(root):
        os.mkdir(root)
    train_set = datasets.MNIST(root=root, train=True, download=True)
    test_set = datasets.MNIST(root=root, train=False, download=True)
    x_train, x_valid = train_set.train_data.split([50000, 10000])
    y_train, y_valid = train_set.train_labels.split([50000, 10000])
    return (x_train.view(50000, -1) / 256.0), y_train.float(), (x_valid.view(10000, -1))/ 256.0, y_valid.float()

x_train,y_train,x_valid,y_valid = get_data()

x_train,y_train,x_valid,y_valid should match the original ones

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