Shifted the image search in __init__. By problems referencing images, I mean that it takes in images before the transforms I applied in __getitem__ instead of images with the transforms. ( I am checking that by printing out the shape of the images before I predict) It should be 1*3*480*640 for the RGB and 1*1*640*480 for the depth when I run it through the model. But, I somehow get an input of size 480* 640* 3. which I think means that it doesnt undergo the required transformations.