yerfor / GeneFacePlusPlus

GeneFace++: Generalized and Stable Real-Time 3D Talking Face Generation; Official Code
MIT License
1.59k stars 229 forks source link

Windows notice. #151

Open XinBow99 opened 8 months ago

XinBow99 commented 8 months ago

After half a day of hard work, I finally managed to train Windows successfully. If you have any questions, feel free to ask below. The main issue during preprocessing is paying attention to the path, like using / or \. image

Juand201 commented 6 months ago

Hi @XinBow99 may be you can help me, im trying to make inference but im getting some issues in windows may be you know why: the issue is explained here: https://github.com/yerfor/GeneFacePlusPlus/issues/8 as you can see im not the only one. Since you are capable to train in windows i assume you know how to inference too.

Many thanks in advance!

XinBow99 commented 6 months ago

Hi @XinBow99 may be you can help me, im trying to make inference but im getting some issues in windows may be you know why: the issue is explained here: #8 as you can see im not the only one. Since you are capable to train in windows i assume you know how to inference too.

Many thanks in advance!

I haven't encountered this issue on Windows 11, Windows 10, Docker, or Ubuntu 22. I think it might be due to the environment. Currently, I manage my Python environment using Venv, and I've also created a separate workspace to manage the CUDA version on my own.

Hope this helps you.

here is my code in setenv.bat:

@echo off
SET INTERNAL=%~dp0%
SET INTERNAL=%INTERNAL:~0,-1%
SET LOCALENV=%INTERNAL%\_z
SET TMP=%LOCALENV%\t
SET TEMP=%TMP%
SET HOME=%LOCALENV%\u
SET HOMEPATH=%HOME%
SET USERPROFILE=%HOME%
SET DESKTOP=%HOME%\Desktop
SET LOCALAPPDATA=%USERPROFILE%\AppData\Local
SET APPDATA=%USERPROFILE%\AppData\Roaming

SET PYTHONHOME=
SET PYTHONPATH=
SET PYTHON_PATH=%INTERNAL%\python310
SET PYTHONEXECUTABLE=%PYTHON_PATH%\python.exe
SET PYTHON_EXECUTABLE=%PYTHONEXECUTABLE%
SET PYTHONWEXECUTABLE=%PYTHON_PATH%\pythonw.exe
SET PYTHONW_EXECUTABLE=%PYTHONWEXECUTABLE%
SET PYTHON_BIN_PATH=%PYTHONEXECUTABLE%
SET PYTHON_LIB_PATH=%PYTHON_PATH%\Lib\site-packages
SET CUDA_PATH=%INTERNAL%\CUDA
SET CUDA_BIN_PATH=%CUDA_PATH%\bin
SET QT_QPA_PLATFORM_PLUGIN_PATH=%PYTHON_LIB_PATH%\PyQT6\Qt6\Plugins\platforms

SET PATH=%INTERNAL%\ffmpeg;%PYTHON_PATH%;%PYTHON_PATH%\Scripts;%TENSORT_LIB_PATH%;%TENSORT_BIN_PATH%;

SET PATH=%CUDA_BIN_PATH%;%PATH%;C:\Windows;C:Windows\System32;

python -m pip uninstall ninja -y
python -m pip install ".\env\ninja\ninja-1.11.1-py2.py3-none-win_amd64.whl"
VAllens commented 3 months ago

Hi, @XinBow99 Can you share your complete process of deploying GeneFacePlusPlus on windows platform?

nitinmukesh commented 3 months ago

@XinBow99 I am also struggling to setup on windows. Any easy guide will be helpful