1.Install on WindowsGit
There are several installation methods for installing Git on Windows. The official version can be downloaded from the Git official website. Open https://git-scm.com/download/win, the download will start automatically. Please note that this is a project called Git for Windows (also called msysGit), which is a separate project from Git; for more information, please visit http://msysgit.github.io/。
To do an automatic installation you can use Git Chocolatey package. Note that the Chocolatey package is maintained by the community.
Another easy way is to install GitHub Desktop. The installation package includes graphical and command-line versions of Git. It also supports Powershell, provides stable credential caching and robust newline settings. We'll know more about this later, but for now just one sentence is all you need. You can download it from the GitHub for Windows website at GitHub Desktop website。
2. The best way to install a Python environment on Windows
Go to the Python website to find the version you want.
安裝環境
windows11
python3.10.3
Go to the Python website to find the version you want.
You should Google Python and find it in the Downloads section, but I’ll include the link below just in case:
https://www.python.org/downloads/

Then choose Windows to select the executable installer version for your system, 64-bit or 32-bit

Start installing Python
First, click Add Python 3.10.3 to Path and then select Install Now

Install FFMEPG
DownloadffmpegInstallation package
Go to ffmpeg official websitehttps://ffmpeg.org/download.html Click to download as shown in the red box in the picture below or go directly to this linkhttps://wws.lanzous.com/iSbuWixi7zgDownloading the ffmpeg installation package will be faster than downloading from the official website. I installed it directly into the same folder as Captura.


After downloading, unzip the file and enterbin directory, you can see three files: ffmpeg.exe, ffplay.exe, and ffprobe.exe. Leave it alone and proceed to the next step.

設置環境變數
如果你下載ffmpeg只是為了使用Captura,直接跳過這一步。
If you want to use it for something else, since the program is only command-line mode, you need to set the environment variable for convenience.
點擊“系統屬性->高級系統設置->環境變數->使用者變數”,選擇“Path”條目,點擊“編輯->新建”,把第一步的bin folder pathCopy and paste it in and click OK. (I put it on D drive)

On Windows, download and install visual studio.During the installation process, make sure to include the Python and C++ packages. What this sentence means is that after downloading the visual stidio software, you must check the python development item and use C++ desktop development. Click these two options, and you only need to check these two options to ignore the others!

Here I recommend that you learn the basics of Visual Studio to better understand why you should install this software. I believe this will be very helpful for our AI painting later on. I have always believed that summarizing practical experiences is the best way to learn, and there is no exception to this rule.
Download rope source code here , unzip it, enter the folder and enter: cmd at the top


Install in the following order
- 安裝venv : python.exe -m venv venv
- Activate venv: .\venv\Scripts\activate
- Install the package: .\venv\Scripts\pip.exe install -r .\requirements.txt
- 下載這3個模組到根目錄下
- GFPGANv1.4.onnx and inswapper_128_fp16.onnx and Occlude.cklpt
If you have not installed roop or rope, you must install the following models
- Installing CUDA Toolkit 11.8
- 安裝 dependencies:
- pip uninstall onnxruntime onnxruntime-gpu
- pip install onnxruntime-gpu==1.15.1
Then run double-click Rope.bat

出面畫面後必須先把Modles Loaded, 然後載入面部圖片文件夾,視頻文件夾,在視頻找出臉部後,逐一配對。
GFPGAN requires GPU support. We recommend using a 3070 or higher, as higher values provide higher clarity. Do not close the command window.

Click here to see the test results
