Assuming the original image is in the channels-first memory layout, this line of code:
image = image.reshape(416,416,3)
would interleave the data and would thus result in the posted image.
To permute the axes, use image = image.permute(1, 2, 0).