Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix clip search

Abhinav109d43d213df
diff --git a/apps/photos/src/services/searchService.ts b/apps/photos/src/services/searchService.ts
index fed967b04a..e83516e7d7 100644
--- a/apps/photos/src/services/searchService.ts
+++ b/apps/photos/src/services/searchService.ts
@@ -33,6 +33,7 @@ import {
getLocalClipImageEmbeddings,
} from './clipService';
import { CustomError } from '@ente/shared/error';
+import { Model } from 'types/embedding';
const DIGITS = new Set(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']);
@@ -383,7 +384,7 @@ async function searchThing(searchPhrase: string) {
}
async function searchClip(searchPhrase: string): Promise<ClipSearchScores> {
- const imageEmbeddings = await getLocalClipImageEmbeddings();
+ const imageEmbeddings = await getLocalClipImageEmbeddings(Model.ONNX_CLIP);
const textEmbedding = await ClipService.getTextEmbedding(searchPhrase);
const clipSearchResult = new Map<number, number>(
(