Misc. fixes

This commit is contained in:
TalosOfCrete 2020-06-07 19:49:46 -05:00
commit 7b5b13bbc7
2 changed files with 1 additions and 2 deletions

View file

@ -178,7 +178,6 @@ class FANExtractor(object):
landmarks = [] landmarks = []
for (left, top, right, bottom) in rects: for (left, top, right, bottom) in rects:
scale = (right - left + bottom - top) / 195.0 scale = (right - left + bottom - top) / 195.0
print(scale)
center = np.array( [ (left + right) / 2.0, (top + bottom) / 2.0] ) center = np.array( [ (left + right) / 2.0, (top + bottom) / 2.0] )
centers = [ center ] centers = [ center ]

View file

@ -267,7 +267,7 @@ class ModelBase(object):
return def_value return def_value
def ask_override(self): 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): def ask_autobackup_hour(self, default_value=0):
default_autobackup_hour = self.options['autobackup_hour'] = self.load_or_def_option('autobackup_hour', default_value) default_autobackup_hour = self.options['autobackup_hour'] = self.load_or_def_option('autobackup_hour', default_value)