mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-10 23:33:30 -07:00
change default jpg face extractor quality to 100
This commit is contained in:
parent
7d389718fe
commit
f6f8f8ee5d
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ class ExtractSubprocessor(Subprocessor):
|
||||||
shutil.copy ( str(filename_path), str(output_file) )
|
shutil.copy ( str(filename_path), str(output_file) )
|
||||||
else:
|
else:
|
||||||
output_file = '{}_{}{}'.format(str(self.final_output_path / filename_path.stem), str(face_idx), '.jpg')
|
output_file = '{}_{}{}'.format(str(self.final_output_path / filename_path.stem), str(face_idx), '.jpg')
|
||||||
cv2_imwrite(output_file, face_image, [int(cv2.IMWRITE_JPEG_QUALITY), 85] )
|
cv2_imwrite(output_file, face_image, [int(cv2.IMWRITE_JPEG_QUALITY), 100] )
|
||||||
|
|
||||||
DFLJPG.embed_data(output_file, face_type=FaceType.toString(self.face_type),
|
DFLJPG.embed_data(output_file, face_type=FaceType.toString(self.face_type),
|
||||||
landmarks=face_image_landmarks.tolist(),
|
landmarks=face_image_landmarks.tolist(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue