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
ModuleNotFoundError: No module named 'tensorflow.contrib'
TF2.0 AutoGraph issue hot 4
When importing TensorFlow, error loading Hadoop hot 4
tensorflow2.0 detected 'xla_gpu' , but 'gpu' expected hot 3
The flag 'log_dir' is defined twice. hot 3
[TF 2.0] Dataset has no attribute 'make_one_shot_iterator' hot 3
[TF 2.0] tf.keras.optimizers.Adam hot 3
ImportError: No module named 'tensorflow.tools' hot 3
Tensorflow 2.0 error when used via pyinstaller build - ImportError: cannot import name 'pywrap_tensorflow' from 'tensorflow_core.python' hot 3
Tf.Keras metrics issue hot 3
Error loading tensorflow hot 3
AttributeError: module 'tensorflow' has no attribute 'set_random_seed' hot 3
AttributeError: module 'tensorflow' has no attribute 'Session' hot 3
Github User Rank List