Fix naming and ordering

This commit is contained in:
henryruhs
2024-09-21 00:08:06 +02:00
parent 54d75dde18
commit 907dc139ed
5 changed files with 33 additions and 33 deletions
@@ -377,8 +377,8 @@ def swap_face(source_face : Face, target_face : Face, temp_vision_frame : Vision
pixel_boost_size = unpack_resolution(state_manager.get_item('face_swapper_pixel_boost'))
pixel_boost_total = pixel_boost_size[0] // model_size[0]
crop_vision_frame, affine_matrix = warp_face_by_face_landmark_5(temp_vision_frame, target_face.landmark_set.get('5/68'), model_template, pixel_boost_size)
crop_masks = []
temp_vision_frames = []
crop_masks = []
if 'box' in state_manager.get_item('face_mask_types'):
box_mask = create_static_box_mask(crop_vision_frame.shape[:2][::-1], state_manager.get_item('face_mask_blur'), state_manager.get_item('face_mask_padding'))