Closed IljaAvadiev closed 1 year ago
Description
When I download the IMDB dataset from torchtext I observe only labels with values 1 and no other labels.
torchtext
1
To Reproduce The following code can be executed on Google Colab.
!pip install torchdata from torch.utils.data import DataLoader, Dataset import torchtext train_dataset = torchtext.datasets.IMDB(split='train') dl = DataLoader(train_dataset, batch_size=1000, shuffle=True) next(iter(dl))[0]
Expected behavior I expect a mixture of 1's and 2's in the labels of the dataset.
Environment
I used GoogleColab to create the bug.
[pip3] numpy==1.22.4 [pip3] torch==1.13.1+cu116 [pip3] torchaudio==0.13.1+cu116 [pip3] torchdata==0.5.1 [pip3] torchsummary==1.5.1 [pip3] torchtext==0.14.1 [pip3] torchvision==0.14.1+cu116
But my local machine creates the same outputs.
Closing since this is a dupe of https://github.com/pytorch/text/issues/2041. Will investigate soon
🐛 Bug
Description
When I download the IMDB dataset from
torchtext
I observe only labels with values1
and no other labels.To Reproduce The following code can be executed on Google Colab.
Expected behavior I expect a mixture of 1's and 2's in the labels of the dataset.
Environment
I used GoogleColab to create the bug.
But my local machine creates the same outputs.