mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 13:09:56 -07:00
commit
08d7a0047b
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,6 @@ class AMPModel(ModelBase):
|
||||||
#override
|
#override
|
||||||
def on_initialize_options(self):
|
def on_initialize_options(self):
|
||||||
default_retraining_samples = self.options['retraining_samples'] = self.load_or_def_option('retraining_samples', False)
|
default_retraining_samples = self.options['retraining_samples'] = self.load_or_def_option('retraining_samples', False)
|
||||||
# default_usefp16 = self.options['use_fp16'] = self.load_or_def_option('use_fp16', False)
|
|
||||||
default_resolution = self.options['resolution'] = self.load_or_def_option('resolution', 224)
|
default_resolution = self.options['resolution'] = self.load_or_def_option('resolution', 224)
|
||||||
default_face_type = self.options['face_type'] = self.load_or_def_option('face_type', 'f')
|
default_face_type = self.options['face_type'] = self.load_or_def_option('face_type', 'f')
|
||||||
default_models_opt_on_gpu = self.options['models_opt_on_gpu'] = self.load_or_def_option('models_opt_on_gpu', True)
|
default_models_opt_on_gpu = self.options['models_opt_on_gpu'] = self.load_or_def_option('models_opt_on_gpu', True)
|
||||||
|
@ -56,12 +55,13 @@ class AMPModel(ModelBase):
|
||||||
default_ct_mode = self.options['ct_mode'] = self.load_or_def_option('ct_mode', 'none')
|
default_ct_mode = self.options['ct_mode'] = self.load_or_def_option('ct_mode', 'none')
|
||||||
default_random_color = self.options['random_color'] = self.load_or_def_option('random_color', False)
|
default_random_color = self.options['random_color'] = self.load_or_def_option('random_color', False)
|
||||||
default_clipgrad = self.options['clipgrad'] = self.load_or_def_option('clipgrad', False)
|
default_clipgrad = self.options['clipgrad'] = self.load_or_def_option('clipgrad', False)
|
||||||
default_use_fp16 = self.options['use_fp16'] = self.load_or_def_option('use_fp16', False)
|
default_usefp16 = self.options['use_fp16'] = self.load_or_def_option('use_fp16', False)
|
||||||
|
|
||||||
ask_override = False if self.read_from_conf else self.ask_override()
|
ask_override = False if self.read_from_conf else self.ask_override()
|
||||||
if self.is_first_run() or ask_override:
|
if self.is_first_run() or ask_override:
|
||||||
if (self.read_from_conf and not self.config_file_exists) or not self.read_from_conf:
|
if (self.read_from_conf and not self.config_file_exists) or not self.read_from_conf:
|
||||||
self.ask_autobackup_hour()
|
self.ask_autobackup_hour()
|
||||||
|
self.ask_session_name()
|
||||||
self.ask_maximum_n_backups()
|
self.ask_maximum_n_backups()
|
||||||
self.ask_write_preview_history()
|
self.ask_write_preview_history()
|
||||||
self.ask_target_iter()
|
self.ask_target_iter()
|
||||||
|
@ -72,6 +72,7 @@ class AMPModel(ModelBase):
|
||||||
self.options['use_fp16'] = io.input_bool ("Use fp16", default_usefp16, help_message='Increases training/inference speed, reduces model size. Model may crash. Enable it after 1-5k iters.')
|
self.options['use_fp16'] = io.input_bool ("Use fp16", default_usefp16, help_message='Increases training/inference speed, reduces model size. Model may crash. Enable it after 1-5k iters.')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if self.is_first_run():
|
if self.is_first_run():
|
||||||
if (self.read_from_conf and not self.config_file_exists) or not self.read_from_conf:
|
if (self.read_from_conf and not self.config_file_exists) or not self.read_from_conf:
|
||||||
resolution = io.input_int("Resolution", default_resolution, add_info="64-640", help_message="More resolution requires more VRAM and time to train. Value will be adjusted to multiple of 32 .")
|
resolution = io.input_int("Resolution", default_resolution, add_info="64-640", help_message="More resolution requires more VRAM and time to train. Value will be adjusted to multiple of 32 .")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue