Remove weight multiplier from edtalk

This commit is contained in:
henryruhs
2025-06-22 14:38:56 +02:00
parent 1e0f6890d5
commit 5c1b6ad5ad

View File

@@ -178,7 +178,7 @@ def sync_lip(target_face : Face, temp_audio_frame : AudioFrame, temp_vision_fram
crop_masks.append(occlusion_mask) crop_masks.append(occlusion_mask)
if model_type == 'edtalk': if model_type == 'edtalk':
lip_syncer_weight = numpy.array([ state_manager.get_item('lip_syncer_weight') ]).astype(numpy.float32) * 1.25 lip_syncer_weight = numpy.array([ state_manager.get_item('lip_syncer_weight') ]).astype(numpy.float32)
box_mask = create_box_mask(crop_vision_frame, state_manager.get_item('face_mask_blur'), state_manager.get_item('face_mask_padding')) box_mask = create_box_mask(crop_vision_frame, state_manager.get_item('face_mask_blur'), state_manager.get_item('face_mask_padding'))
crop_masks.append(box_mask) crop_masks.append(box_mask)
crop_vision_frame = prepare_crop_frame(crop_vision_frame) crop_vision_frame = prepare_crop_frame(crop_vision_frame)