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.
Hi,
Thanks for the great work!
Inside you custom llava_vid.py under load_video_index function you have the following code:
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.