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
* instead of needing to reindex.
*/
export const indexFaces = async (
enteFile: EnteFile,
localFile?: globalThis.File,
) => {
export const indexFaces = async (enteFile: EnteFile, localFile?: File) => {
const startTime = Date.now();
const imageBitmap = await fetchOrCreateImageBitmap(enteFile, localFile);
@ -67,9 +64,7 @@ export const indexFaces = async (
interface MLSyncFileContext {
enteFile: EnteFile;
localFile?: globalThis.File;
oldMlFile?: MlFileData;
newMlFile?: MlFileData;
imageBitmap?: ImageBitmap;