diff --git a/facelib/FANExtractor.py b/facelib/FANExtractor.py index e5eae3a..5676fcc 100644 --- a/facelib/FANExtractor.py +++ b/facelib/FANExtractor.py @@ -178,7 +178,6 @@ class FANExtractor(object): landmarks = [] for (left, top, right, bottom) in rects: scale = (right - left + bottom - top) / 195.0 - print(scale) center = np.array( [ (left + right) / 2.0, (top + bottom) / 2.0] ) centers = [ center ] diff --git a/models/ModelBase.py b/models/ModelBase.py index b2fb317..2d03e78 100644 --- a/models/ModelBase.py +++ b/models/ModelBase.py @@ -267,7 +267,7 @@ class ModelBase(object): return def_value def ask_override(self): - return self.is_training and self.iter != 0 #and io.input_in_time ("Press enter in 2 seconds to override model settings.", 5 if io.is_colab() else 2 ) + return self.is_training and self.iter != 0 and io.input_in_time ("Press enter in 2 seconds to override model settings.", 5 if io.is_colab() else 2 ) def ask_autobackup_hour(self, default_value=0): default_autobackup_hour = self.options['autobackup_hour'] = self.load_or_def_option('autobackup_hour', default_value)