mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
SampleLoader: fix error
This commit is contained in:
parent
c42b1b2124
commit
f8580928ed
2 changed files with 13 additions and 11 deletions
|
@ -74,15 +74,17 @@ class SampleLoader:
|
|||
result = FaceSamplesLoaderSubprocessor(image_paths).run()
|
||||
sample_list = []
|
||||
|
||||
for filename, \
|
||||
( face_type,
|
||||
shape,
|
||||
landmarks,
|
||||
seg_ie_polys,
|
||||
xseg_mask,
|
||||
eyebrows_expand_mod,
|
||||
source_filename,
|
||||
) in result:
|
||||
for filename, data in result:
|
||||
if data is None:
|
||||
continue
|
||||
( face_type,
|
||||
shape,
|
||||
landmarks,
|
||||
seg_ie_polys,
|
||||
xseg_mask,
|
||||
eyebrows_expand_mod,
|
||||
source_filename ) = data
|
||||
|
||||
sample_list.append( Sample(filename=filename,
|
||||
sample_type=SampleType.FACE,
|
||||
face_type=FaceType.fromString (face_type),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue