mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
fix
This commit is contained in:
parent
0444a9a565
commit
446b95942f
1 changed files with 10 additions and 10 deletions
|
@ -459,7 +459,7 @@ class AMPModel(ModelBase):
|
|||
gpu_dst_loss += 0.1*tf.reduce_mean(tf.square(gpu_pred_dst_dst_anti_masked-gpu_target_dst_anti_masked),axis=[1,2,3] )
|
||||
gpu_dst_losses += [gpu_dst_loss]
|
||||
|
||||
if not pretrain:
|
||||
#if not pretrain:
|
||||
if resolution < 256:
|
||||
gpu_src_loss = tf.reduce_mean ( 10*nn.dssim(gpu_target_src_masked_opt, gpu_pred_src_src_masked_opt, max_val=1.0, filter_size=int(resolution/11.6)), axis=[1])
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue