Skip to content

Commit

Permalink
Fix kubric data loading of video shape (None, 256, 256, None) (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyi02 authored Jun 6, 2024
1 parent 7fa640a commit 082a020
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions challenges/point_tracking/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ def add_tracks(data,
)
video = tf.slice(video, start, size)
video = tf.image.resize(tf.cast(video, tf.float32), train_size)
video.set_shape([num_frames, train_size[0], train_size[1], 3])
if vflip:
video = video[:, ::-1, :, :]
target_points = target_points * np.array([1, -1])
Expand Down

0 comments on commit 082a020

Please sign in to comment.