Prune
This commit is contained in:
parent
9ba028b79d
commit
a2e7231c37
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue