[shotwell/wip/cleanup-facedetect: 14/15] Ignore errors from load_net.




commit 04ac814e6bcbb3002c346745402896e0d74ddd76
Author: Jens Georg <mail jensge org>
Date:   Sun Aug 14 17:00:03 2022 +0200

    Ignore errors from load_net.
    
    This just means DNN is not working

 src/faces/FaceDetect.vala | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/faces/FaceDetect.vala b/src/faces/FaceDetect.vala
index 6b019968..658c71e2 100644
--- a/src/faces/FaceDetect.vala
+++ b/src/faces/FaceDetect.vala
@@ -87,11 +87,8 @@ public class FaceDetect {
                                                   null);
             Idle.add(() => {
                 try {
-                    if (interface.load_net(net_file))
-                        connected = true;
-                    else {
-                        AppWindow.error_message(ERROR_MESSAGE);
-                    }
+                    interface.load_net(net_file))
+                    connected = true;
                 } catch (Error error) {
                     critical("Failed to call load_net: %s", error.message);
                     AppWindow.error_message(ERROR_MESSAGE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]