mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-24 15:16:21 -07:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
41a8acf383
3 changed files with 31 additions and 31 deletions
|
@ -74,8 +74,8 @@ class ModelBase(object):
|
||||||
self.options.pop('epoch')
|
self.options.pop('epoch')
|
||||||
if self.iter != 0:
|
if self.iter != 0:
|
||||||
self.options = model_data['options']
|
self.options = model_data['options']
|
||||||
self.loss_history = model_data['loss_history'] if 'loss_history' in model_data.keys() else []
|
self.loss_history = model_data.get('loss_history', [])
|
||||||
self.sample_for_preview = model_data['sample_for_preview'] if 'sample_for_preview' in model_data.keys() else None
|
self.sample_for_preview = model_data.get('sample_for_preview', None)
|
||||||
|
|
||||||
ask_override = self.is_training_mode 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 )
|
ask_override = self.is_training_mode 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 )
|
||||||
|
|
||||||
|
@ -178,9 +178,7 @@ class ModelBase(object):
|
||||||
if not isinstance(generator, SampleGeneratorBase):
|
if not isinstance(generator, SampleGeneratorBase):
|
||||||
raise ValueError('training data generator is not subclass of SampleGeneratorBase')
|
raise ValueError('training data generator is not subclass of SampleGeneratorBase')
|
||||||
|
|
||||||
if (self.sample_for_preview is None) or (self.iter == 0):
|
if self.sample_for_preview is None or choose_preview_history:
|
||||||
|
|
||||||
if self.iter == 0:
|
|
||||||
if choose_preview_history and io.is_support_windows():
|
if choose_preview_history and io.is_support_windows():
|
||||||
wnd_name = "[p] - next. [enter] - confirm."
|
wnd_name = "[p] - next. [enter] - confirm."
|
||||||
io.named_window(wnd_name)
|
io.named_window(wnd_name)
|
||||||
|
|
|
@ -3,6 +3,7 @@ h5py==2.9.0
|
||||||
Keras==2.2.4
|
Keras==2.2.4
|
||||||
opencv-python==4.0.0.21
|
opencv-python==4.0.0.21
|
||||||
tensorflow-gpu==1.12.0
|
tensorflow-gpu==1.12.0
|
||||||
|
plaidml==0.6.0
|
||||||
plaidml-keras==0.5.0
|
plaidml-keras==0.5.0
|
||||||
scikit-image
|
scikit-image
|
||||||
tqdm
|
tqdm
|
||||||
|
|
|
@ -3,6 +3,7 @@ h5py==2.9.0
|
||||||
Keras==2.2.4
|
Keras==2.2.4
|
||||||
opencv-python==4.0.0.21
|
opencv-python==4.0.0.21
|
||||||
tensorflow==1.12.0
|
tensorflow==1.12.0
|
||||||
|
plaidml==0.6.0
|
||||||
plaidml-keras==0.5.0
|
plaidml-keras==0.5.0
|
||||||
scikit-image
|
scikit-image
|
||||||
tqdm
|
tqdm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue