Feature Extraction
Safetensors
English
minicpmv
VisRAG
custom_code
tcy6 commited on
Commit
76f3bf5
1 Parent(s): 932baf3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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()