This script automates the process of applying face swap to videos using Automatic 1111 with the Reactor extension. The video is split into frames, which are edited using Reactor, and then merged back into a video. Sound is also copied in the process. This script was created because the manual process was rather tedious to do otherwise.
You can also use ForgeUI instead of Automatic 1111.
Thanks to abhishekvakharia, we now also have a dedicated version for macOS. Just switch to the "Mac_version" branch.
You will need working installations of both Automatic 1111 and Reactor for this script to work.
The Automatic 1111 API needs to be enabled. Add "--api" to the COMMANDLINE_ARGS in the webui-user.bat file in the Automatic 1111 directory.
To install all other dependencies and set up all the needed folders, simply run the install.py script once.
Since this script uses Reactor, it is limited when applied to faces with lots of movement, especially talking. Face swapping into videos also takes a considerable amount of time, simply because there are a lot of frames even in short clips.