运行faceswap faceswap.py gui 的时候提示

File "D:\XX\faceswap\lib\gui\menu.py", line 271, in _get_branches
    retcode, stdout.decode().strip().replace("\n", " - "))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte
05/28/2022 21:00:14 CRITICAL An unexpected crash has occurred. Crash report written to 'D:\XX\faceswap\crash_report.2022.xx.xx.xxxxx052.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting

提示文件menu.py line271行错误, 可能是因为我的是中文环境操作系统,所以报错,

找到源文件 faceswap/lib/gui/menu.py,修改271行内容

 retcode, stdout.decode().strip().replace("\n", " - "))

 retcode, stdout.decode("utf8","ignore").strip().replace("\n", " - "))

如图所示

file

修改完成后再次运行 faceswap faceswap.py gui即可正常打开

file