div by float

This commit is contained in:
mszmyd 2024-05-05 12:44:54 +02:00
parent de27695d53
commit b7ca0fae45
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class Dataset:
def _get_image(self, image_path):
img = tf.io.read_file(image_path)
img = tf.io.decode_jpeg(img, channels=3) / 255
img = tf.io.decode_jpeg(img, channels=3) / 255.
return tf.cast(img, dtype=tf.float32, name=None)
def _preprocess(self, image_path):