innat commited on
Commit
93ca8bb
1 Parent(s): b115246

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -2
utils.py CHANGED
@@ -12,8 +12,7 @@ IMAGENET_STD = np.array([0.225, 0.225, 0.225])
12
 
13
  def format_frames(frame, output_size):
14
  frame = tf.image.convert_image_dtype(frame, tf.uint8)
15
- # frame = tf.image.resize(frame, size=output_size)
16
- frame = tf.image.resize_with_pad(frame, target_height=input_size, target_width=input_size)
17
  frame = frame / 255.
18
  frame = frame - IMAGENET_MEAN
19
  frame = frame / IMAGENET_STD
 
12
 
13
  def format_frames(frame, output_size):
14
  frame = tf.image.convert_image_dtype(frame, tf.uint8)
15
+ frame = tf.image.resize(frame, size=output_size)
 
16
  frame = frame / 255.
17
  frame = frame - IMAGENET_MEAN
18
  frame = frame / IMAGENET_STD