We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf4f49 commit 75b1c58Copy full SHA for 75b1c58
utils/data_loader.py
@@ -106,8 +106,8 @@ def load_image(self, file_path) -> tuple:
106
img = tf.io.decode_image(
107
img, channels=self.NUM_CHANNELS, expand_animations=False
108
)
109
- img = tf.image.resize(img, [self.HEIGHT, self.WIDTH])
110
img = tf.image.convert_image_dtype(img, tf.float32)
+ img = tf.image.resize(img, [self.HEIGHT, self.WIDTH])
111
112
return img, tf.cast(label, tf.float32)
113
0 commit comments