Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yingqinghe committed Aug 21, 2023
1 parent 51bdbf6 commit 2fb64c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvdm/data/frame_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ def make_dataset_ucf(dir, nframes, class_to_idx, frame_stride=1, clip_step=None)
"class_caption": class_caption #boxing speed bag
}
frames.append(frame_info)

frames = frames[::frame_stride]

# make videos
if len(frames) >= nframes:
videos.append(frames)

# make clips
frames = frames[::frame_stride]
start_indices = list(range(len(frames)))[::clip_step]
for i in start_indices:
clip = frames[i:i+nframes]
Expand Down

0 comments on commit 2fb64c2

Please sign in to comment.