1.the problem
ValueError: Floating point image RGB values must be in the 0..1 range.
2.the solution
The problem is that the data should be between 0-1 and need to be normalized
tf.clip_by_value(t, 0.0, 1.0)
Image normalization is OK/127.5-1
3.pay attention
Use this method to normalize the returned object Tensor
, which needs to be converted back tondarray.eval(session=sess)