Update data_video.py

coding bug
This commit is contained in:
zyssyz123 2024-09-12 14:51:24 +08:00 committed by GitHub
parent 87ad61b531
commit 33b81dd307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -408,7 +408,7 @@ class SFTDataset(Dataset):
num_frames = self.max_num_frames
start = int(self.skip_frms_num)
end = int(ori_vlen - self.skip_frms_num)
indices = np.arange(start, end, max((end - start) // num_frames), 1).astype(int)
indices = np.arange(start, end, max((end - start) // num_frames, 1)).astype(int)
temp_frms = vr.get_batch(np.arange(start, end))
assert temp_frms is not None
tensor_frms = (