ColPali
Safetensors
English
paligemma
vidore-experimental
tonywu71 commited on
Commit
dce8522
1 Parent(s): 496d826

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -10
README.md CHANGED
@@ -67,16 +67,15 @@ from PIL import Image
67
 
68
  from colpali_engine.models import ColPali, ColPaliProcessor
69
 
70
- model = cast(
71
- ColPali,
72
- ColPali.from_pretrained(
73
- "vidore/colpali-v1.2",
74
- torch_dtype=torch.bfloat16,
75
- device_map="cuda:0", # or "mps" if on Apple Silicon
76
- ).eval(),
77
- )
78
-
79
- processor = cast(ColPaliProcessor, ColPaliProcessor.from_pretrained("google/paligemma-3b-mix-448"))
80
 
81
  # Your inputs
82
  images = [
 
67
 
68
  from colpali_engine.models import ColPali, ColPaliProcessor
69
 
70
+ model_name = "vidore/colpali-v1.2-merged"
71
+
72
+ model = ColPali.from_pretrained(
73
+ model_name,
74
+ torch_dtype=torch.bfloat16,
75
+ device_map="cuda:0", # or "mps" if on Apple Silicon
76
+ ).eval()
77
+
78
+ processor = ColPaliProcessor.from_pretrained(model_name)
 
79
 
80
  # Your inputs
81
  images = [