IndexError: index 1 is out of bounds for axis 0 with size 1

thank you so much @ptrblck ,
i solved the problem it was a messy dimension all over the data set
for data processing i did them inside the custom dataset but i think it is wrong
how can i do all the propeccing before the augmentstion and outside the custom dataset

def __getitem__(self, index):
      """Get specific data corresponding to the index
      Args:
          index (int): index of the data
      Returns:
          Tensor: specific data on index which is converted to Tensor
      """
      """
      # GET IMAGE
      """
      single_image_name = self.image_arr[index]
      img_as_img = Image.open(single_image_name)
      

      # img_as_img.show()
      img_as_np = np.asarray(img_as_img)
     
      img_as_np =  clahe_equalized(img_as_np)
     
      
      img_as_np=FrangiFilter2D(img_as_np)

Data processing is usually done in the __getitem__ method.
Which part would you want to call outside and what would the reason be?