ValueError: Floating point image RGB values must be in the 0..1 range.

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)

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *