Closed alessandro-greco closed 2 years ago
Hello how can i solve this warn? Lossy conversion from float64 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Same error
You can fix it by updating the following code:
image = image.astype(np.uint8) right before imageio.imwrite(image_path, image)
image = image.astype(np.uint8)
imageio.imwrite(image_path, image)
Hello how can i solve this warn? Lossy conversion from float64 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.