mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-06-15 12:29:19 +08:00
Update data_video.py
coding bug
This commit is contained in:
parent
87ad61b531
commit
33b81dd307
@ -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 = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user