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:
- (Keil MDK) UCOS floating point support abnormal solution
- [Solved] MindSpore Error: ValueError: `padding_idx` in `Embedding` out of range
- Python draw error: ValueError: ‘color’ kwarg must be a color or sequence of color specs. For a sequence of values to b
- [Solved] TFrecords Create Datas Error: Number of int64 values != expected. Values size: 1 but output shape: [3]
- [Solved] MindSpore Error: ValueError: For ‘AvgPool’ every dimension of the output shape must be greater than zero
- [Solved] MindSpore infer error when passing in sens values for derivation: For ‘MatMul’, the input dimensions
- runtime error ‘9’: subscript out of range error in VBA programming
- mainfest Image Error: (img/icons/andriod-chrome-192×192.png)Download error or resource isn’t a vaild image
- [Solved] Docker Delete Image Error: Error: No such image
- Angular Start Porject error: ERROR in The target entry-point “primeng/editor“ has missing dependencies:
- Crop the cropper image .toBlob() error: $(“#image”).cropper(‘getCroppedCanvas’).toBlob( function (blob){})
- [Solved] Camera Calibration Error: ErrorMessage: Image size does not match the measurement in camera parameters
- Zchunk error: Unable to find multipart download range error in dnf update
- [Solved] ValueError: the indices for endog and exog are not aligned
- How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode
- [Solved] Angular Start Project Error: The target entry-point “ngx-echarts“ has missing dependencies: – @juggle/resi
- ValueError: Negative dimension size caused by subtracting 2 from 1 for…
- How to Solve “RIP Address Out Of Range” Error
- Android Studio Error: String index out of range 0 [How to Solve]
- [Solved] MindSpore Error: ValueError: Minimum inputs size 0 does not match…