Your Question
Is it intended, that read_image returns different shapes (order of c, h, w), depending on the as_tensor parameter?
print(read_image(image_file_path, as_tensor=True).shape)
# torch.Size([3, 490, 326])
print(read_image(image_file_path, as_tensor=False).shape)
# (490, 326, 3)
Forum Check