how to swap the specified face #266
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
there are multi faces in a video , how to swap the specified face with one photo
Inference for image or video face swapping
To swap a specific person within a video:
1- Get a screenshot of a frame with that person.
2- crop that persons face and neck and head so that they are easily identifiable
3- put that picture in your demo_file folder
4- run the following command:
python test_video_swapspecific.py --crop_size 224 --use_mask --pic_specific_path ./demo_file/specific1.png --name people --Arc_path arcface_model/arcface_checkpoint.tar --pic_a_path ./demo_file/Iron_man.jpg --video_path ./demo_file/multi_people_1080p.mp4 --output_path ./output/multi_test_specific.mp4 --temp_path ./temp_results
[(specific1.png) = picture of the person who's face you want to swap
(Pic_a_path)= picture of person who's face you want to use.
(Video_path)= name of the video file that you want to perform the swap in]
let me know if you understand, you may close the issue if everything works now. Good luck.