to_float32
- lib.training.data.data_set.to_float32(in_array: npt.NDArray[np.uint8]) npt.NDArray[np.float32]
Cast an UINT8 array in 0-255 range to float32 in 0.0-1.0 range.
- Parameters:
in_array (npt.NDArray[np.uint8]) – The input uint8 array
- Return type:
The array cast to 0.0 - 1.0 float32