you can implement flashface in img2img pipeline or inpainting https://github.com/ali-vilab/FlashFace