Advertisement
alseambusher

preprocess

Aug 8th, 2019
12,468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. def preprocess(frame):
  2.     x = tf.image.resize_bilinear(frame, [224, 224])
  3.     x = preprocess_input(x)
  4.     return x
  5.  
  6. dataset = dataset.batch(64).map(preprocess, 10).prefetch(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement