mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 14:24:40 -07:00
bug fix
This commit is contained in:
parent
2890bd38ff
commit
49de9735d6
1 changed files with 5 additions and 0 deletions
|
@ -197,6 +197,8 @@ class ModelBase(object):
|
|||
self.batch_cap = self.options.get('batch_cap',16)
|
||||
self.sort_by_yaw = self.options.get('sort_by_yaw', False)
|
||||
self.random_flip = self.options.get('random_flip', True)
|
||||
if self.batch_cap == 0:
|
||||
self.batch_cap = self.options['batch_cap'] = self.batch_size
|
||||
|
||||
self.src_scale_mod = self.options.get('src_scale_mod', 0)
|
||||
if self.src_scale_mod == 0 and 'src_scale_mod' in self.options:
|
||||
|
@ -553,6 +555,9 @@ class ModelBase(object):
|
|||
if self.iter % 1000 == 0 and self.iter != 0 and self.options.get('ping_pong', True):
|
||||
if self.batch_size == self.batch_cap:
|
||||
self.paddle = 'pong'
|
||||
if self.batch_size > self.batch_cap:
|
||||
self.set_batch_size(self.batch_cap)
|
||||
self.paddle = 'pong'
|
||||
if self.batch_size == 1:
|
||||
self.paddle = 'ping'
|
||||
if self.paddle == 'ping':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue