Open AnwesaBhattacharya opened 4 years ago
I am getting a blank image as output. It seems to be so because of the following lines in the code.
final_output[np.where(final_output < 0. )] = 0. final_output[np.where(final_output > 1. )] = 1. derained = final_output[0,:,:,:]
The final_output 3D array I am getting has values greater than 1. It's something like this: The code mentioned above converts it into an array of ones. Can you please suggest how to get the expected output?
What is your input image file? Is input array in [0,1]?
I think you should convert the jpg file to png file. I have tried and found it useful.
I am getting a blank image as output. It seems to be so because of the following lines in the code.
final_output[np.where(final_output < 0. )] = 0. final_output[np.where(final_output > 1. )] = 1. derained = final_output[0,:,:,:]
The final_output 3D array I am getting has values greater than 1. It's something like this: The code mentioned above converts it into an array of ones. Can you please suggest how to get the expected output?