ok the error now changed to
IndexError                                Traceback (most recent call last)
 in 
6     ])
7 LSP_dataset = LSPLoader(train_transform)
----> 8 plotSamples(LSP_dataset)
9 plt.show()
 in plotSamples(dataset)
3     for i in range(25):
4         ax = axes[i // 5, i % 5]
----> 5         sample = dataset[i]
6         image = sample[‘image’]
7         joints = sample[‘joints’]
 in getitem(self, idx)
69         if self.transform:
70             sample = self.transform(image)
—> 71             img = sample[‘image’]
72             label = sample[‘landmarks’]
73
IndexError: too many indices for tensor of dimension 3