Spaces:
Running
Running
Update libra/eval/run_libra.py
Browse files- libra/eval/run_libra.py +1 -1
libra/eval/run_libra.py
CHANGED
@@ -176,7 +176,7 @@ def libra_eval(
|
|
176 |
attention_mask = torch.ones(input_ids.shape, dtype=torch.long, device=device)
|
177 |
pad_token_id = tokenizer.pad_token_id
|
178 |
|
179 |
-
image_tensor = get_image_tensors(image_file, image_processor, model,
|
180 |
|
181 |
stop_str = conv.sep if conv.sep_style != SeparatorStyle.TWO else conv.sep2
|
182 |
keywords = [stop_str]
|
|
|
176 |
attention_mask = torch.ones(input_ids.shape, dtype=torch.long, device=device)
|
177 |
pad_token_id = tokenizer.pad_token_id
|
178 |
|
179 |
+
image_tensor = get_image_tensors(image_file, image_processor, model, device=device)
|
180 |
|
181 |
stop_str = conv.sep if conv.sep_style != SeparatorStyle.TWO else conv.sep2
|
182 |
keywords = [stop_str]
|