This commit is contained in:
Manav Rathi
2024-07-18 14:26:01 +05:30
parent ecbed8c02a
commit 53a418c2cd
2 changed files with 7 additions and 3 deletions

View File

@@ -297,7 +297,11 @@ export const putDerivedData = async (
derivedData: RawRemoteDerivedData,
) =>
// TODO-ML: Fix name to "combined" before release
putEmbedding(enteFile, "onnx-clip", await gzip(JSON.stringify(derivedData)));
putEmbedding(
enteFile,
"onnx-clip",
await gzip(JSON.stringify(derivedData)),
);
/**
* Upload an embedding to remote.

View File

@@ -448,7 +448,7 @@ const index = async (
const msg = [];
if (!existingFaceIndex) msg.push(`${faceIndex.faces.length} faces`);
if (!existingCLIPIndex) msg.push("clip");
return `Indexed ${msg.join(" and ")} clip in ${f} (${ms} ms)`;
return `Indexed ${msg.join(" and ")} in ${f} (${ms} ms)`;
});
const remoteFaceIndex = existingRemoteFaceIndex ?? {
@@ -469,7 +469,7 @@ const index = async (
const existingRawDerivedData = remoteDerivedData?.raw ?? {};
const rawDerivedData = {
...{ existingRawDerivedData },
...existingRawDerivedData,
face: remoteFaceIndex,
clip: remoteCLIPIndex,
};