Its the torchvision transforms that are not working when its in the cache.  I know torchvision is made to work with PIL images.  But I would think that the data coming out of the cache is byte for byte the same as the file loaded with cv2.imread() shouldn’t it?