We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I was referring to the dataloader code for imagenet32. Upon visualizing the validation set, I am getting weird images.
Visualizing Code
transform = transforms.Compose([ transforms.ToTensor() ]) d = ImageNet32(root = '.', train=False, transform = transform) val_loader = torch.utils.data.DataLoader(d, batch_size=16, shuffle=False) def imshow(img): npimg = img.numpy() plt.figure(figsize = (10, 10)) plt.imshow(np.transpose(npimg, (1, 2, 0))) plt.show() dataiter = iter(val_loader) images, labels = next(dataiter) imshow(torchvision.utils.make_grid(images))
Either i'm mistaking somewhere in the visualization, or the dataloader is not reading the npz correctly. Can you please help resolve this?
npz
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I was referring to the dataloader code for imagenet32. Upon visualizing the validation set, I am getting weird images.
Visualizing Code
Either i'm mistaking somewhere in the visualization, or the dataloader is not reading the
npz
correctly.Can you please help resolve this?
The text was updated successfully, but these errors were encountered: