DongfuJiang commited on
Commit
26d5130
1 Parent(s): 8b0a71a
Files changed (1) hide show
  1. app_high_res.py +1 -1
app_high_res.py CHANGED
@@ -12,7 +12,7 @@ from transformers import AutoProcessor, Idefics2ForConditionalGeneration
12
  from models.conversation import conv_templates
13
  from typing import List
14
  processor = AutoProcessor.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096")
15
- model = Idefics2ForConditionalGeneration.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096", torch_dtype=torch.float16)
16
  # model = model.to("cuda")
17
  MAX_NUM_FRAMES = 24
18
  conv_template = conv_templates["idefics_2"]
 
12
  from models.conversation import conv_templates
13
  from typing import List
14
  processor = AutoProcessor.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096")
15
+ model = Idefics2ForConditionalGeneration.from_pretrained("Mantis-VL/mantis-8b-idefics2-video-eval-high-res-35k-mantis-2epoch_4096", torch_dtype=torch.bfloat16)
16
  # model = model.to("cuda")
17
  MAX_NUM_FRAMES = 24
18
  conv_template = conv_templates["idefics_2"]