lixinhao commited on
Commit
6e39ace
·
verified ·
1 Parent(s): aac07d6

Update modeling_videochat_flash.py

Browse files
Files changed (1) hide show
  1. modeling_videochat_flash.py +1 -1
modeling_videochat_flash.py CHANGED
@@ -636,7 +636,7 @@ class VideoChatFlashQwenForCausalLM(LlavaMetaForCausalLM, Qwen2ForCausalLM_Flash
636
 
637
  image_sizes = [frames[0].shape[:2]]
638
 
639
- frames = [self.get_vision_tower().image_processor.preprocess(frames, return_tensors="pt")["pixel_values"].half().cuda()]
640
 
641
  conv = conv_templates["qwen_2"].copy()
642
 
 
636
 
637
  image_sizes = [frames[0].shape[:2]]
638
 
639
+ frames = [self.get_vision_tower().image_processor.preprocess(frames, return_tensors="pt")["pixel_values"].to(self.model.dtype).cuda()]
640
 
641
  conv = conv_templates["qwen_2"].copy()
642