wwzjer / Semi-supervised-IRR

Semi-supervised Transfer Learning for Image Rain Removal. In CVPR 2019.
64 stars 10 forks source link

A blank image is obtained as output #3

Open AnwesaBhattacharya opened 4 years ago

AnwesaBhattacharya commented 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: Screenshot (132) The code mentioned above converts it into an array of ones. Screenshot (133) Can you please suggest how to get the expected output?

wwzjer commented 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: Screenshot (132) The code mentioned above converts it into an array of ones. Screenshot (133) Can you please suggest how to get the expected output?

What is your input image file? Is input array in [0,1]?

ShenZheng2000 commented 3 years ago

I think you should convert the jpg file to png file. I have tried and found it useful.