Skip to content

Commit 75b1c58

Browse files
committed
Bugfix: Data Loader
1 parent 7bf4f49 commit 75b1c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/data_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def load_image(self, file_path) -> tuple:
106106
img = tf.io.decode_image(
107107
img, channels=self.NUM_CHANNELS, expand_animations=False
108108
)
109-
img = tf.image.resize(img, [self.HEIGHT, self.WIDTH])
110109
img = tf.image.convert_image_dtype(img, tf.float32)
110+
img = tf.image.resize(img, [self.HEIGHT, self.WIDTH])
111111

112112
return img, tf.cast(label, tf.float32)
113113

0 commit comments

Comments
 (0)