Skip to content

Fix problem- llava_vid #34

Description

@amitshomer

Hi,
Thanks for the great work!
Inside you custom llava_vid.py under load_video_index function you have the following code:

        if len(frame_idx) < max_frames_num:
            sample_fps = max_frames_num
            uniform_sampled_frames = np.linspace(0, total_frame_num - 1, sample_fps, dtype=int)
            frame_idx = uniform_sampled_frames.tolist()
            frame_time = [i / vr.get_avg_fps() for i in frame_idx]

Which mean any selected frame smaller than the maximal value will change to uniform sample, while the logic should be vise versa. For example we created 32 selected frames using yours logic, but while the max_frames_num=64 it will load always 64 uniform frames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions