We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ColPaliModelIntegrationTest
1 parent e8e142d commit 0e0af80Copy full SHA for 0e0af80
tests/models/colpali/test_modeling_colpali.py
@@ -270,8 +270,8 @@ def test_model_integration_test(self):
270
ds = load_dataset("hf-internal-testing/document-visual-retrieval-test", split="test")
271
272
# 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)
+ batch_images = self.processor(images=ds["image"][:]).to(torch_device)
+ batch_queries = self.processor(text=ds["query"][:]).to(torch_device)
275
276
# Run inference
277
with torch.inference_mode():
0 commit comments