tf.image.convert_image_dtype注意

image: 3-D Tensor of image. If dtype is tf.float32 then the range should be
[0, 1], otherwise it would converted to tf.float32 assuming that the range
is [0, MAX], where MAX is largest positive representable number for
int(8/16/32) data type (see `tf.image.convert_image_dtype` for details).

float32場合は、それ以外の場合は、最大値は正規化された入力の種類に応じて分割され、0と1の間で独自の入力値を確認する必要があります。

公開された557元の記事 ウォンの賞賛500 ビュー153万+

おすすめ

転載: blog.csdn.net/qq_16234613/article/details/99674516