mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Merge branch 'master' of github.com:cszdlt/DeepFaceLab
This commit is contained in:
commit
36bff495b8
1 changed files with 1 additions and 2 deletions
|
@ -198,8 +198,6 @@ class SAEHDModel(ModelBase):
|
||||||
if dims % 2 != 0:
|
if dims % 2 != 0:
|
||||||
dims += 1
|
dims += 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def func(x):
|
def func(x):
|
||||||
|
|
||||||
for i in [8,4,2]:
|
for i in [8,4,2]:
|
||||||
|
@ -455,6 +453,7 @@ class SAEHDModel(ModelBase):
|
||||||
psd_target_dst_anti_masked = self.model.pred_src_dst*(1.0 - target_dstm)
|
psd_target_dst_anti_masked = self.model.pred_src_dst*(1.0 - target_dstm)
|
||||||
|
|
||||||
if self.is_training_mode:
|
if self.is_training_mode:
|
||||||
|
|
||||||
lr_dropout = 0.3 if self.options['lr_dropout'] else 0.0
|
lr_dropout = 0.3 if self.options['lr_dropout'] else 0.0
|
||||||
self.src_dst_opt = RMSprop(lr=5e-5, lr_dropout=lr_dropout, clipnorm=1.0 if self.options['clipgrad'] else 0.0, tf_cpu_mode=self.options['optimizer_mode']-1)
|
self.src_dst_opt = RMSprop(lr=5e-5, lr_dropout=lr_dropout, clipnorm=1.0 if self.options['clipgrad'] else 0.0, tf_cpu_mode=self.options['optimizer_mode']-1)
|
||||||
self.src_dst_mask_opt = RMSprop(lr=5e-5, lr_dropout=lr_dropout, clipnorm=1.0 if self.options['clipgrad'] else 0.0, tf_cpu_mode=self.options['optimizer_mode']-1)
|
self.src_dst_mask_opt = RMSprop(lr=5e-5, lr_dropout=lr_dropout, clipnorm=1.0 if self.options['clipgrad'] else 0.0, tf_cpu_mode=self.options['optimizer_mode']-1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue