Skip to content

Commit 0e0af80

Browse files
authored
Fix failing ColPaliModelIntegrationTest (#42705)
Fixed failing ColPaliModelIntegrationTest
1 parent e8e142d commit 0e0af80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/models/colpali/test_modeling_colpali.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ def test_model_integration_test(self):
270270
ds = load_dataset("hf-internal-testing/document-visual-retrieval-test", split="test")
271271

272272
# Preprocess the examples
273-
batch_images = self.processor(images=ds["image"]).to(torch_device)
274-
batch_queries = self.processor(text=ds["query"]).to(torch_device)
273+
batch_images = self.processor(images=ds["image"][:]).to(torch_device)
274+
batch_queries = self.processor(text=ds["query"][:]).to(torch_device)
275275

276276
# Run inference
277277
with torch.inference_mode():

0 commit comments

Comments
 (0)