Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 927f78c

Browse files
Ryan SepassiCopybara-Service
authored andcommitted
Do not require preprocess_resize_frames in hparams for VideoProblem
PiperOrigin-RevId: 207295010
1 parent ac8f6e3 commit 927f78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/data_generators/video_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def use_not_breaking_batching(self):
140140

141141
def preprocess_example(self, example, mode, hparams):
142142
"""Runtime preprocessing, e.g., resize example["frame"]."""
143-
if hparams.preprocess_resize_frames is not None:
143+
if getattr(hparams, "preprocess_resize_frames", None) is not None:
144144
example["frame"] = tf.image.resize_images(
145145
example["frame"],
146146
hparams.preprocess_resize_frames,

0 commit comments

Comments
 (0)