Last active
November 20, 2021 16:07
-
-
Save shayaf84/0759dd4d018a66131be02a756555770a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tensorflow import io | |
#Convert image to a tensor - 3 RGB Channels - resized to 224x224 | |
image = tf.io.read_file("drive/MyDrive/oboe.png") | |
image = tf.io.decode_jpeg(image, channels=3) | |
image = tf.image.convert_image_dtype(image, tf.float32) | |
image = tf.image.resize_with_pad(image, target_height=224, target_width=224) | |
#Generates 50 intervals for the interpolation of images | |
alpha = tf.linspace(start=0.0, stop=1.0, num= 50) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment