From 4661780f95b3f02f85a8de45bfc29853bde5e8e1 Mon Sep 17 00:00:00 2001 From: xunings Date: Wed, 17 Apr 2019 10:51:40 +0800 Subject: [PATCH] Fix the learning_rate=None issue, see facenet issue #884. --- src/facenet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/facenet.py b/src/facenet.py index a0440a6f7..4119ac94c 100644 --- a/src/facenet.py +++ b/src/facenet.py @@ -307,7 +307,9 @@ def get_learning_rate_from_file(filename, epoch): if e <= epoch: learning_rate = lr else: - return learning_rate + #return learning_rate + break + return learning_rate class ImageClass(): "Stores the paths to images for a given class"