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 d39e15f commit fdd5b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/collections/multimodal/data/neva/neva_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def flatten_frames(self, cap):
else:
partition_size = max(1, len(cap) // self.data_cfg['num_frames'])
for i in range(0, len(cap), partition_size):
frame = cap[i].asnumpy()[:, :, ::-1]
rgb_frame = cap[i].asnumpy()[:, :, ::-1]
img = Image.fromarray(rgb_frame).convert('RGB')
frames.append(img)
return frames
Expand Down

0 comments on commit fdd5b5b

Please sign in to comment.