mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Misc. fixes
This commit is contained in:
parent
a099350eb6
commit
7b5b13bbc7
2 changed files with 1 additions and 2 deletions
|
@ -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 ]
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue