how to swap the specified face #266

Open
opened 2022-05-12 09:41:35 +02:00 by yslion · 2 comments
yslion commented 2022-05-12 09:41:35 +02:00 (Migrated from github.com)

there are multi faces in a video , how to swap the specified face with one photo

there are multi faces in a video , how to swap the specified face with one photo
netrunner-exe commented 2022-05-12 12:01:57 +02:00 (Migrated from github.com)

there are multi faces in a video , how to swap the specified face with one photo

Inference for image or video face swapping

> there are multi faces in a video , how to swap the specified face with one photo [Inference for image or video face swapping](https://github.com/neuralchen/SimSwap/blob/main/docs/guidance/usage.md)
Fibonacci134 commented 2022-05-13 12:17:16 +02:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.