Skip to content

Commit

Permalink
Fix the audio dimensions for eval input.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 420825486
  • Loading branch information
yuanliangzhe authored and tensorflower-gardener committed Jan 10, 2022
1 parent cf1f8a2 commit 1080693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion official/vision/beta/dataloaders/video_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def _parse_eval_data(
audio = decoded_tensors[self._audio_feature]
audio = tf.cast(audio, dtype=self._dtype)
audio = preprocess_ops_3d.sample_sequence(
audio, 20, random=False, stride=1)
audio, self._audio_shape[0], random=False, stride=1)
audio = tf.ensure_shape(audio, self._audio_shape)
features['audio'] = audio

Expand Down

0 comments on commit 1080693

Please sign in to comment.