mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Update CLIP model load path
This commit is contained in:
@@ -18,7 +18,7 @@ from src.utils.config import ImageSearchModel, ImageSearchConfig
|
||||
def initialize_model():
|
||||
# Initialize Model
|
||||
torch.set_num_threads(4)
|
||||
encoder = SentenceTransformer('clip-ViT-B-32') #Load the CLIP model
|
||||
encoder = SentenceTransformer('sentence-transformers/clip-ViT-B-32') #Load the CLIP model
|
||||
return encoder
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user