[mob] Fix remove from cluster & provide option to delete files from cluster view (#2858)
## Description ## Tests
This commit is contained in:
@@ -82,13 +82,13 @@ extension GalleyTypeExtension on GalleryType {
|
||||
case GalleryType.locationTag:
|
||||
case GalleryType.quickLink:
|
||||
case GalleryType.peopleTag:
|
||||
case GalleryType.cluster:
|
||||
return true;
|
||||
case GalleryType.trash:
|
||||
case GalleryType.archive:
|
||||
case GalleryType.hiddenSection:
|
||||
case GalleryType.hiddenOwnedCollection:
|
||||
case GalleryType.sharedCollection:
|
||||
case GalleryType.cluster:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,8 +263,8 @@ class FaceClusteringService {
|
||||
Future<ClusteringResult> predictWithinClusterComputer(
|
||||
Map<String, Uint8List> input, {
|
||||
Map<int, int>? fileIDToCreationTime,
|
||||
Map<int, (Uint8List, int)> oldClusterSummaries =
|
||||
const <int, (Uint8List, int)>{},
|
||||
Map<String, (Uint8List, int)> oldClusterSummaries =
|
||||
const <String, (Uint8List, int)>{},
|
||||
double distanceThreshold = kRecommendedDistanceThreshold,
|
||||
}) async {
|
||||
_logger.info(
|
||||
@@ -366,7 +366,7 @@ class FaceClusteringService {
|
||||
Future<ClusteringResult> predictCompleteComputer(
|
||||
Map<String, Uint8List> input, {
|
||||
Map<int, int>? fileIDToCreationTime,
|
||||
required Map<int, (Uint8List, int)> oldClusterSummaries,
|
||||
required Map<String, (Uint8List, int)> oldClusterSummaries,
|
||||
double distanceThreshold = kRecommendedDistanceThreshold,
|
||||
double mergeThreshold = 0.30,
|
||||
}) async {
|
||||
|
||||
Reference in New Issue
Block a user