mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +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():
|
def initialize_model():
|
||||||
# Initialize Model
|
# Initialize Model
|
||||||
torch.set_num_threads(4)
|
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
|
return encoder
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user