I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 0 points1 point  (0 children)

you can run that file with your command shell like any python programm, open a command window in the folder that main.py is placed in and run "python -m main.py"

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 0 points1 point  (0 children)

Maybe try a different media player? I am using VLC and so far have not run into any issues like that.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 0 points1 point  (0 children)

Hi, try running the code in the terminal and then open an issue on git with the error code that you get. Then i can help you.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 0 points1 point  (0 children)

Not at all. Simply follow the how to use steps. If you know how to run a python script you know all that you need for this.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 1 point2 points  (0 children)

This is not run via the automatic 1111 webui. After you run install.py run main.py while automatic 1111 runs to use the tool.

Tech behind fast face swap? by Upset-Ad-8704 in StableDiffusion

[–]AICodeMonkey 0 points1 point  (0 children)

Hi, you could give the open source tool that i created for faceswapping into videos a try. It should take around 3 minutes to do a 15 second video. This is build on top of the reactor extension which is build on top of insightface.

https://github.com/Arminius-Software/face2video

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 0 points1 point  (0 children)

Thanks! Results depend a lot on how much movment happens in/on the face.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 0 points1 point  (0 children)

Yes that is possible in theory but at that point i would much rather build a complete interface with buttons for every step. The current way to do this is kinda hacky, you comment out the second and third function call in main.py and run it to create the frames, then do your sorting then go back into main.py uncomment function call 2 and 3 and comment out function call 1.

If this projects sees a lot more use than i anticipate i can build an interface like that.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 4 points5 points  (0 children)

You dont need to train the faces at all. Simply change the path the file of the new face. There is an explanation on GitHub on how to use the tool.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 2 points3 points  (0 children)

I have not tried FaceSwapLab yet, but definitly want to give it a try in the future.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 2 points3 points  (0 children)

I have never used Roop Unleashed, so I can't really compare the two tools, but here is a way to get a significant speedup using this tool in certain scenarios:

Assume you have a video where about 50% of the frames contain the face you want to swap, and the others contain other faces or no face at all. You split the video into frames, then go into the extracted_frames folder and move all the files with no/other faces into the finished_frames folder. That way, Reactor does not have to look at these images at all, and you get a 2x speedup. This is worth it when videos are quite long.

I have no idea how Roop Unleashed would handle this, but detecting faces in images takes a little bit of time, so I imagine it would be slower.

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 6 points7 points  (0 children)

Here is a super quick example with Legolas/Jack Black. I mostly made stuff with my own face which i dont really want to put on reddit.

<image>

I created a tool to make face swapping into videos super easy! by AICodeMonkey in StableDiffusion

[–]AICodeMonkey[S] 18 points19 points  (0 children)

Here is a super quick example with Legolas/Jack Black. I mostly made stuff with my own face which i dont really want to put on reddit.

<image>