Update README.md
Browse files
README.md
CHANGED
@@ -84,7 +84,7 @@ def encode(text_or_image_list):
|
|
84 |
embeddings = F.normalize(reps, p=2, dim=1).detach().cpu().numpy()
|
85 |
return embeddings
|
86 |
|
87 |
-
model_name_or_path = "openbmb/VisRAG"
|
88 |
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True)
|
89 |
model = AutoModel.from_pretrained(model_name_or_path, torch_dtype=torch.bfloat16, trust_remote_code=True)
|
90 |
model.eval()
|
|
|
84 |
embeddings = F.normalize(reps, p=2, dim=1).detach().cpu().numpy()
|
85 |
return embeddings
|
86 |
|
87 |
+
model_name_or_path = "openbmb/VisRAG-Ret"
|
88 |
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True)
|
89 |
model = AutoModel.from_pretrained(model_name_or_path, torch_dtype=torch.bfloat16, trust_remote_code=True)
|
90 |
model.eval()
|