[desktop] People: Remove from behind internal user flag (#3511)

This commit is contained in:
Manav Rathi
2024-09-28 17:51:14 +05:30
committed by GitHub
4 changed files with 5 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
## v1.7.5 (Unreleased)
- Face grouping (beta).
- Directly upload to selected album on drag and drop.
- Include shared files in export.
- .

View File

@@ -301,10 +301,6 @@ const clusterBatchLinear = async (
if (csim > nnCosineSimilarity && csim >= threshold) {
nnIndex = j;
nnCosineSimilarity = csim;
// If we've find something above our early exit threshold, stop
// looking for a better match (A way to speed up clustering).
if (csim >= 0.9) break;
}
}

View File

@@ -14,7 +14,6 @@ import type { EnteFile } from "@/new/photos/types/file";
import { ensure } from "@/utils/ensure";
import { throttled } from "@/utils/promise";
import { proxy, transfer } from "comlink";
import { isInternalUser } from "../feature-flags";
import { getRemoteFlag, updateRemoteFlag } from "../remote-store";
import { setSearchPeople } from "../search";
import type { UploadItem } from "../upload/types";
@@ -342,8 +341,6 @@ export const mlSync = async () => {
const workerDidUnawaitedIndex = () => void updateClustersAndPeople();
const updateClustersAndPeople = async () => {
if (!(await isInternalUser())) return;
const masterKey = await masterKeyFromSession();
// Fetch existing cgroups from remote.

View File

@@ -174,6 +174,10 @@ export const reconstructPeople = async (): Promise<Person[]> => {
// in the UI.
if (isHidden) return undefined;
// Older versions of the mobile app marked hidden cgroups by setting
// their name to an empty string.
if (!name) return undefined;
// Person faces from all the clusters assigned to this cgroup, sorted by
// their score.
const faces = assigned