mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Rename
This commit is contained in:
parent
1f0686d84d
commit
c1fe756a86
@ -86,7 +86,7 @@ class FaceMlService {
|
||||
static const int _fileDownloadLimit = 10;
|
||||
static const _kForceClusteringFaceCount = 8000;
|
||||
|
||||
/// Only call this function once at app startup, after that you can directly call [runAllFaceML]
|
||||
/// Only call this function once at app startup, after that you can directly call [runAllML]
|
||||
Future<void> init() async {
|
||||
if (LocalSettings.instance.isFaceIndexingEnabled == false ||
|
||||
_isInitialized) {
|
||||
@ -114,7 +114,7 @@ class FaceMlService {
|
||||
"MLController allowed running ML, faces indexing starting",
|
||||
);
|
||||
}
|
||||
unawaited(runAllFaceML());
|
||||
unawaited(runAllML());
|
||||
} else {
|
||||
_logger.info(
|
||||
"MLController stopped running ML, faces indexing will be paused (unless it's fetching embeddings)",
|
||||
@ -132,7 +132,7 @@ class FaceMlService {
|
||||
await SemanticSearchService.instance.sync();
|
||||
}
|
||||
|
||||
Future<void> runAllFaceML({bool force = false}) async {
|
||||
Future<void> runAllML({bool force = false}) async {
|
||||
if (force) {
|
||||
_mlControllerStatus = true;
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
|
||||
onTap: () async {
|
||||
try {
|
||||
FaceMlService.instance.debugIndexingDisabled = false;
|
||||
unawaited(FaceMlService.instance.runAllFaceML());
|
||||
unawaited(FaceMlService.instance.runAllML());
|
||||
} catch (e, s) {
|
||||
_logger.warning('indexAndClusterAll failed ', e, s);
|
||||
await showGenericErrorDialog(context: context, error: e);
|
||||
|
@ -224,7 +224,8 @@ class _MachineLearningSettingsPageState
|
||||
await LocalSettings.instance.toggleFaceIndexing();
|
||||
if (isEnabled) {
|
||||
await FaceMlService.instance.init();
|
||||
unawaited(FaceMlService.instance.runAllFaceML(force: true));
|
||||
await SemanticSearchService.instance.init();
|
||||
unawaited(FaceMlService.instance.runAllML(force: true));
|
||||
} else {
|
||||
FaceMlService.instance.pauseIndexingAndClustering();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user