Error:valueerror: cannot set tensor: got tensor of type notype but expected type float32 for input 1, name: input_2
Solution:
When using cv2.imread(/your/image/path) to read an image, the data type is Uint8, you need to change it to float32.
under_exp = np.array(under_exp, dtype=np.float32)