profile
viewpoint

Ask questionsLossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning.

Version : tensorflow-gpu==2.0.0-beta1 OS : Ubuntu 18.04 LTS

W0621 10:32:12.746317 139752995510080 util.py:64] Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning.

not something important but do you know how to remove this warning?

I already included import os import tensorflow as tf os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'

tensorflow/tensorflow

Answer questions martinwicke

This warning is generated by imageio, not tensorflow: https://github.com/imageio/imageio/blob/ef1f24f23ae959cccf646128dba7b403638d9b5e/imageio/core/util.py

You can use tf.convert_image_dtype to make sure that images are properly scaled to 0...255.

useful!

Related questions

ModuleNotFoundError: No module named 'tensorflow.contrib' hot 8
Error occurred when finalizing GeneratorDataset iterator hot 7
tensorflow-gpu CUPTI errors
Error loading tensorflow
ModuleNotFoundError: No module named 'tensorflow.contrib'
module 'tensorflow' has no attribute 'ConfigProto'
TF 2.0 'Tensor' object has no attribute 'numpy' while using .numpy() although eager execution enabled by default
When importing TensorFlow, error loading Hadoop
tf.keras.layers.Conv1DTranspose ?
[TF 2.0] tf.keras.optimizers.Adam hot 4
TF2.0 AutoGraph issue hot 4
Tf.Keras metrics issue hot 4
ModuleNotFoundError: No module named 'tensorflow.examples.tutorials' hot 4
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list' hot 4
module 'tensorflow.python._pywrap_tensorflow_internal' has no attribute 'TFE_NewContextOptions' hot 4
Github User Rank List