This commit is contained in:
Manav Rathi 2024-05-18 15:59:31 +05:30
parent bcbd805404
commit b29436e160
No known key found for this signature in database

View file

@ -70,7 +70,7 @@ export const indexFaces = async (
return newMlFile;
};
export interface MLSyncFileContext {
interface MLSyncFileContext {
enteFile: EnteFile;
localFile?: globalThis.File;
@ -79,7 +79,6 @@ export interface MLSyncFileContext {
imageBitmap?: ImageBitmap;
newDetection?: boolean;
newAlignment?: boolean;
}
@ -125,7 +124,6 @@ const syncFileAnalyzeFaces = async (fileContext: MLSyncFileContext) => {
const syncFileFaceDetections = async (fileContext: MLSyncFileContext) => {
const { newMlFile } = fileContext;
fileContext.newDetection = true;
const imageBitmap = await fetchImageBitmapForContext(fileContext);
const faceDetections = await detectFaces(imageBitmap);
// TODO-ML(MR): reenable faces filtering based on width