and this is the error I got
TypeError                                 Traceback (most recent call last)
<ipython-input-40-658119f1f5a6> in <module>()
      1 for img in train_gen:
----> 2   img = torch.from_numpy(img)
      3   print(img)

TypeError: expected np.ndarray (got tuple)