New loc
This commit is contained in:
@@ -10,8 +10,8 @@ import { useCallback, useContext, useEffect, useRef, useState } from "react";
|
||||
import { components } from "react-select";
|
||||
import AsyncSelect from "react-select/async";
|
||||
import { InputActionMeta } from "react-select/src/types";
|
||||
import type { Person } from "services/face/people";
|
||||
import { City } from "services/locationSearchService";
|
||||
import type { Person } from "services/ml/people";
|
||||
import {
|
||||
getAutoCompleteSuggestions,
|
||||
getDefaultOptions,
|
||||
|
||||
@@ -18,7 +18,7 @@ import { t } from "i18next";
|
||||
import { AppContext } from "pages/_app";
|
||||
import { useContext, useEffect, useState } from "react";
|
||||
import { Trans } from "react-i18next";
|
||||
import { canEnableFaceIndexing } from "services/face/indexer";
|
||||
import { canEnableFaceIndexing } from "services/ml/indexer";
|
||||
import {
|
||||
getFaceSearchEnabledStatus,
|
||||
updateFaceSearchEnabledStatus,
|
||||
|
||||
@@ -4,8 +4,8 @@ import { Skeleton, styled } from "@mui/material";
|
||||
import { Legend } from "components/PhotoViewer/styledComponents/Legend";
|
||||
import { t } from "i18next";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { unidentifiedFaceIDs } from "services/face/indexer";
|
||||
import type { Person } from "services/face/people";
|
||||
import { unidentifiedFaceIDs } from "services/ml/indexer";
|
||||
import type { Person } from "services/ml/people";
|
||||
|
||||
const FaceChipContainer = styled("div")`
|
||||
display: flex;
|
||||
|
||||
@@ -50,12 +50,12 @@ import "photoswipe/dist/photoswipe.css";
|
||||
import { createContext, useContext, useEffect, useRef, useState } from "react";
|
||||
import LoadingBar from "react-top-loading-bar";
|
||||
import { resumeExportsIfNeeded } from "services/export";
|
||||
import { photosLogout } from "services/logout";
|
||||
import {
|
||||
isFaceIndexingEnabled,
|
||||
setIsFaceIndexingEnabled,
|
||||
} from "services/face/indexer";
|
||||
import mlWorkManager from "services/face/mlWorkManager";
|
||||
import { photosLogout } from "services/logout";
|
||||
} from "services/ml/indexer";
|
||||
import mlWorkManager from "services/ml/mlWorkManager";
|
||||
import {
|
||||
getFamilyPortalRedirectURL,
|
||||
getRoadmapRedirectURL,
|
||||
|
||||
@@ -2,11 +2,11 @@ import DownloadManager from "@/new/photos/services/download";
|
||||
import { terminateFaceWorker } from "@/new/photos/services/face";
|
||||
import { clearFaceData } from "@/new/photos/services/face/db";
|
||||
import { clearFeatureFlagSessionState } from "@/new/photos/services/feature-flags";
|
||||
import mlWorkManager from "@/new/photos/services/ml/mlWorkManager";
|
||||
import log from "@/next/log";
|
||||
import { accountLogout } from "@ente/accounts/services/logout";
|
||||
import { clipService } from "services/clip-service";
|
||||
import exportService from "./export";
|
||||
import mlWorkManager from "./face/mlWorkManager";
|
||||
|
||||
/**
|
||||
* Logout sequence for the photos app.
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
import { FILE_TYPE } from "@/media/file-type";
|
||||
import {
|
||||
faceIndexingStatus,
|
||||
isFaceIndexingEnabled,
|
||||
} from "@/new/photos/services/ml/indexer";
|
||||
import mlWorkManager from "@/new/photos/services/ml/mlWorkManager";
|
||||
import { EnteFile } from "@/new/photos/types/file";
|
||||
import { isDesktop } from "@/next/app";
|
||||
import log from "@/next/log";
|
||||
import * as chrono from "chrono-node";
|
||||
import { t } from "i18next";
|
||||
import type { Person } from "services/face/people";
|
||||
import type { Person } from "services/ml/people";
|
||||
import { Collection } from "types/collection";
|
||||
import { EntityType, LocationTag, LocationTagData } from "types/entity";
|
||||
import {
|
||||
@@ -21,8 +26,6 @@ import { getFormattedDate } from "utils/search";
|
||||
import { clipService, computeClipMatchScore } from "./clip-service";
|
||||
import { localCLIPEmbeddings } from "./embeddingService";
|
||||
import { getLatestEntities } from "./entityService";
|
||||
import { faceIndexingStatus, isFaceIndexingEnabled } from "./face/indexer";
|
||||
import mlWorkManager from "./face/mlWorkManager";
|
||||
import locationSearchService, { City } from "./locationSearchService";
|
||||
|
||||
const DIGITS = new Set(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { FILE_TYPE } from "@/media/file-type";
|
||||
import { EnteFile } from "@/new/photos/types/file";
|
||||
import type { FaceIndexingStatus } from "services/face/indexer";
|
||||
import type { Person } from "services/face/people";
|
||||
import { City } from "services/locationSearchService";
|
||||
import type { FaceIndexingStatus } from "services/ml/indexer";
|
||||
import type { Person } from "services/ml/people";
|
||||
import { LocationTagData } from "types/entity";
|
||||
|
||||
export enum SuggestionType {
|
||||
|
||||
@@ -2,8 +2,8 @@ import { EnteFile } from "@/new/photos/types/file";
|
||||
import log from "@/next/log";
|
||||
import { CustomError, parseUploadErrorCodes } from "@ente/shared/error";
|
||||
import PQueue from "p-queue";
|
||||
import { syncWithLocalFilesAndGetFilesToIndex } from "services/face/indexer";
|
||||
import { FaceIndexerWorker } from "services/face/indexer.worker";
|
||||
import { syncWithLocalFilesAndGetFilesToIndex } from "services/ml/indexer";
|
||||
import { FaceIndexerWorker } from "services/ml/indexer.worker";
|
||||
|
||||
const batchSize = 200;
|
||||
|
||||
@@ -8,7 +8,7 @@ import { Events, eventBus } from "@ente/shared/events";
|
||||
import { getToken, getUserID } from "@ente/shared/storage/localStorage/helpers";
|
||||
import debounce from "debounce";
|
||||
import PQueue from "p-queue";
|
||||
import type { DedicatedMLWorker } from "services/face/face.worker";
|
||||
import type { DedicatedMLWorker } from "services/ml/face.worker";
|
||||
|
||||
export type JobState = "Scheduled" | "Running" | "NotScheduled";
|
||||
|
||||
Reference in New Issue
Block a user