mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 13:09:56 -07:00
sample processor - custom always goes
This commit is contained in:
parent
1630152cfe
commit
a0e9bdba6e
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class SampleProcessor(object):
|
|||
img = imagelib.warp_by_params (params_per_resolution[resolution], img, warp, transform, can_flip=True, border_replicate=border_replicate, cv2_inter=cv2.INTER_LINEAR)
|
||||
img = cv2.resize( img, (resolution,resolution), interpolation=cv2.INTER_LINEAR )
|
||||
else:
|
||||
if face_type != sample_face_type:
|
||||
if face_type != sample_face_type and sample_face_type != FaceType.CUSTOM: # custom always valid for stuff like for wf custom equivivelnet
|
||||
mat = LandmarksProcessor.get_transform_mat (sample_landmarks, resolution, face_type)
|
||||
img = cv2.warpAffine( img, mat, (resolution,resolution), borderMode=borderMode, flags=cv2.INTER_LINEAR )
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue