Update README.md
Browse files
README.md
CHANGED
@@ -78,7 +78,7 @@ model.eval()
|
|
78 |
video_path = "XXXX"
|
79 |
max_frames_num = 64
|
80 |
video,frame_time,video_time = load_video(video_path, max_frames_num, 1, force_sample=True)
|
81 |
-
video = image_processor.preprocess(video, return_tensors="pt")["pixel_values"].cuda().
|
82 |
video = [video]
|
83 |
conv_template = "qwen_1_5" # Make sure you use correct chat template for different models
|
84 |
time_instruction = f"The video lasts for {video_time:.2f} seconds, and {len(video[0])} frames are uniformly sampled from it. "
|
|
|
78 |
video_path = "XXXX"
|
79 |
max_frames_num = 64
|
80 |
video,frame_time,video_time = load_video(video_path, max_frames_num, 1, force_sample=True)
|
81 |
+
video = image_processor.preprocess(video, return_tensors="pt")["pixel_values"].cuda().to(torch.bfloat16)
|
82 |
video = [video]
|
83 |
conv_template = "qwen_1_5" # Make sure you use correct chat template for different models
|
84 |
time_instruction = f"The video lasts for {video_time:.2f} seconds, and {len(video[0])} frames are uniformly sampled from it. "
|