Invalid total_num_frames=0 in metadata.

#14
by kmsky - opened

Hi there,

I have this error when I try to run model in Google Colab.

Do you have a solution for this?

/usr/local/lib/python3.11/dist-packages/transformers/models/smolvlm/video_processing_smolvlm.py in smolvlm_sample_indices_fn(metadata, max_frames, target_fps, skip_secs)
     56 
     57     total_num_frames = getattr(metadata, "total_num_frames", 0)
---> 58     if total_num_frames <= 0:
     59         raise ValueError(f"Invalid total_num_frames={total_num_frames} in metadata.")
     60 

ValueError: Invalid total_num_frames=0 in metadata.

This only happens with certain video file. Others work fine.

kmsky changed discussion status to closed

This only happens with certain video file. Others work fine.

what kind of video that prevent this error?

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment