mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 14:24:40 -07:00
fixed typo
This commit is contained in:
parent
5d91470e3d
commit
e32c7a963f
1 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ class ExtractSubprocessor(Subprocessor):
|
|||
LandmarksProcessor.draw_rect_landmarks (debug_image, rect, image_landmarks, self.image_size, self.face_type, transparent_mask=True)
|
||||
|
||||
if filename_path.suffix == '.jpg':
|
||||
print(filename_path.suffix + 'is a jpeg')
|
||||
|
||||
# if extracting from dflimg and jpg copy it in order not to lose quality
|
||||
output_file = '{}_{}{}'.format(str(self.final_output_path / filename_path.stem),
|
||||
str(face_idx), '.jpg')
|
||||
|
@ -259,7 +259,7 @@ class ExtractSubprocessor(Subprocessor):
|
|||
pitch_yaw_roll=data.pitch_yaw_roll
|
||||
)
|
||||
else:
|
||||
print(filename_path.suffix + 'is a png')
|
||||
|
||||
output_file = '{}_{}{}'.format(str(self.final_output_path / filename_path.stem),
|
||||
str(face_idx), '.png')
|
||||
cv2_imwrite(output_file, face_image, [int(cv2.IMWRITE_PNG_COMPRESSION), 0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue