Skip to content

Commit 4e44082

Browse files
Johannes Ballécopybara-github
authored andcommitted
Discards alpha channel (if any) in tfci.py.
PiperOrigin-RevId: 362350339 Change-Id: Icddf9fe099c9fccfa7689c93dd68f797a5049539
1 parent 77a340f commit 4e44082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/tfci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
def read_png(filename):
4040
"""Loads a PNG image file."""
4141
string = tf.io.read_file(filename)
42-
image = tf.image.decode_image(string)
42+
image = tf.image.decode_image(string, channels=3)
4343
return tf.expand_dims(image, 0)
4444

4545

0 commit comments

Comments
 (0)