simswapping multiple images in a folder #356

Open
opened 2022-12-08 04:23:58 +01:00 by Davistan123 · 1 comment
Davistan123 commented 2022-12-08 04:23:58 +01:00 (Migrated from github.com)

Does anyone know how this can be done in the test_one_image.py file ? i have been running this script in .ipynb

!cd SimSwap & python test_one_image.py
--no_simswaplogo
--crop_size 224
--name people
--Arc_path arcface_model/arcface_checkpoint.tar
--pic_a_path crop_224/b5.jpg
--pic_b_path crop_224/2.jpg
--output_path output/

is there a way that i can change pic_b_path to loop through all the images while having b5.jpg as constant ?

Does anyone know how this can be done in the test_one_image.py file ? i have been running this script in .ipynb !cd SimSwap & python test_one_image.py \ --no_simswaplogo \ --crop_size 224 \ --name people \ --Arc_path arcface_model/arcface_checkpoint.tar \ --pic_a_path crop_224/b5.jpg\ --pic_b_path crop_224/2.jpg \ --output_path output/ is there a way that i can change pic_b_path to loop through all the images while having b5.jpg as constant ?
pinkllamas commented 2022-12-09 16:39:05 +01:00 (Migrated from github.com)

The only solution I've found is to make an mp4 video of all the images in a folder, run it through as a video, and then use ffmpeg to extract the frames from the video to get the result. Unfortunately, it results in compression artifacts, but they're not so bad.

The only solution I've found is to make an mp4 video of all the images in a folder, run it through as a video, and then use ffmpeg to extract the frames from the video to get the result. Unfortunately, it results in compression artifacts, but they're not so bad.
Sign in to join this conversation.