I am trying the code for image segmentation for self driving cars using Berkley deep drive dataset, I trained the model, and tested an image on it, got an output in tensor format(the segmented image), but I need it in image format, I tried Image.fromarray
function, got the below output:
And the actual image is shown below:
The model I am using is from this git repo.