afiliot commited on
Commit
c37af77
1 Parent(s): 0c40f72

Update scripts/data.py

Browse files
Files changed (1) hide show
  1. scripts/data.py +1 -1
scripts/data.py CHANGED
@@ -35,7 +35,7 @@ class SlideFeaturesDataset(torch.utils.data.Dataset):
35
  Tuple[torch.Tensor, torch.Tensor]
36
  (1000, 768), (1)
37
  """
38
- return (self.features[item], self.labels.unsqueeze(0).float())
39
 
40
  def __len__(self) -> int:
41
  return len(self.hf_dataset)
 
35
  Tuple[torch.Tensor, torch.Tensor]
36
  (1000, 768), (1)
37
  """
38
+ return (self.features[item], self.labels[item].unsqueeze(0).float())
39
 
40
  def __len__(self) -> int:
41
  return len(self.hf_dataset)