Fix
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user