Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def import_data():
- image_path = tf.train.match_filenames_once("C:UsersratnoDesktophonest chaos*.JPG")
- filename_queue = tf.train.string_input_producer(image_path)
- reader = tf.WholeFileReader()
- _, content = reader.read(filename_queue)
- image = tf.image.decode_jpeg(content, channels=1)
- cropped_image = tf.image.resize_image_with_crop_or_pad(image, 3000, 3000)
- reduced_image = tf.image.resize_images(cropped_image, [100, 100])
- modified_image = tf.transpose(tf.reshape(reduced_image, [10000, 1]))
- return modified_image
Add Comment
Please, Sign In to add comment