mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
added random shuffle to samples in SampleGeneratorFace.py
This commit is contained in:
parent
f6f8f8ee5d
commit
b9c0815d17
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class SampleGeneratorFace(SampleGeneratorBase):
|
||||||
self.generators_random_seed = generators_random_seed
|
self.generators_random_seed = generators_random_seed
|
||||||
|
|
||||||
samples = SampleLoader.load (self.sample_type, self.samples_path, sort_by_yaw_target_samples_path, person_id_mode=person_id_mode)
|
samples = SampleLoader.load (self.sample_type, self.samples_path, sort_by_yaw_target_samples_path, person_id_mode=person_id_mode)
|
||||||
|
np.random.shuffle(samples)
|
||||||
self.samples_len = len(samples)
|
self.samples_len = len(samples)
|
||||||
|
|
||||||
if self.samples_len == 0:
|
if self.samples_len == 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue