Module torchvision.datasets has no attribute 'EMNIST'

Has anyone tried to load the EMNIST dataset with Dataloader?

No matter which version of torchvision / pytorch I use, I get the error:
module torchvision.datasets has no attribute ‘EMNIST’

The documentation seems to suggest there is:
http://pytorch.org/docs/master/torchvision/datasets.html#emnist

Some context for example:

Train = torch.utils.data.DataLoader(
         batch_size=64,
         shuffle=False,
         num_workers=1,
         pin_memory=False,
         dataset=torchvision.datasets.EMNIST(
                 root='./emnist/',
                 split='letters',
                 train=False,
                 download=True,
                 transform=torchvision.transforms.Compose([
                         torchvision.transforms.ToTensor(),
                 torchvision.transforms.Normalize(tuple([ 0.1307 ]), tuple([ 0.3081 ]))
                 ])
         )
)

1 Like

It’s not in a release yet. The torchvision package is really easy to install from source though https://github.com/pytorch/vision

2 Likes