mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
refactoring
This commit is contained in:
parent
121c0cfc0f
commit
eda6433936
5 changed files with 9 additions and 13 deletions
|
@ -6,11 +6,7 @@ You can implement your own SampleGenerator
|
|||
class SampleGeneratorBase(object):
|
||||
|
||||
|
||||
def __init__ (self, samples_path, debug=False, batch_size=1):
|
||||
if samples_path is None:
|
||||
raise Exception('samples_path is None')
|
||||
|
||||
self.samples_path = Path(samples_path)
|
||||
def __init__ (self, debug=False, batch_size=1):
|
||||
self.debug = debug
|
||||
self.batch_size = 1 if self.debug else batch_size
|
||||
self.last_generation = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue