Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def preprocess(frame):
- x = tf.image.resize_bilinear(frame, [224, 224])
- x = preprocess_input(x)
- return x
- dataset = dataset.batch(64).map(preprocess, 10).prefetch(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement