This commit is contained in:
Manav Rathi 2024-05-18 16:52:49 +05:30
parent 9ba028b79d
commit a2e7231c37
No known key found for this signature in database

View file

@ -43,10 +43,7 @@ import { transformFaceDetections } from "./transform-box";
* the user's remote storage so that their other devices can download them * the user's remote storage so that their other devices can download them
* instead of needing to reindex. * instead of needing to reindex.
*/ */
export const indexFaces = async ( export const indexFaces = async (enteFile: EnteFile, localFile?: File) => {
enteFile: EnteFile,
localFile?: globalThis.File,
) => {
const startTime = Date.now(); const startTime = Date.now();
const imageBitmap = await fetchOrCreateImageBitmap(enteFile, localFile); const imageBitmap = await fetchOrCreateImageBitmap(enteFile, localFile);
@ -67,9 +64,7 @@ export const indexFaces = async (
interface MLSyncFileContext { interface MLSyncFileContext {
enteFile: EnteFile; enteFile: EnteFile;
localFile?: globalThis.File;
oldMlFile?: MlFileData;
newMlFile?: MlFileData; newMlFile?: MlFileData;
imageBitmap?: ImageBitmap; imageBitmap?: ImageBitmap;