Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pratyush Muthukumar <[email protected]>
  • Loading branch information
PannuMuthu authored Feb 22, 2024
1 parent fdd5b5b commit cf9dafd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nemo/collections/multimodal/data/neva/neva_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def flatten_frames(self, cap):
return frames
else:
partition_size = max(1, len(cap) // self.data_cfg['num_frames'])
frames = []
for i in range(0, len(cap), partition_size):
rgb_frame = cap[i].asnumpy()[:, :, ::-1]
img = Image.fromarray(rgb_frame).convert('RGB')
Expand Down

0 comments on commit cf9dafd

Please sign in to comment.