Update install.bat

This commit is contained in:
Jeffreytsai1004 2025-02-22 02:11:53 +08:00
parent df091eb1e4
commit 70f8444f29

View File

@ -15,50 +15,6 @@ set "HF_HOME=%PROJECT_DIR%\cache\huggingface"
@CALL SET VS_VCVARS="%VS_DIR%\VC\Auxiliary\Build\vcvars64.bat"
@CALL SET PATH=%CUDA_HOME%\bin;%PROJECT_DIR%\condabin;%PATH%
REM Check prerequisites
where python >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo 错误: 未找到Python
exit /b 1
)
else (
echo Python 已安装
)
nvcc --version | findstr "release 11.8" >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo 错误: 需要CUDA 11.8版本
exit /b 1
)
else (
echo CUDA 11.8 已安装
)
if not exist "%VS_DIR%" (
echo 错误: 未找到Visual Studio
exit /b 1
)
else (
echo Visual Studio 已安装
)
where git >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo 错误: 未找到 Git
exit /b 1
)
else (
echo Git 已安装
)
if not exist "%BLENDER_DIR%" (
echo 错误: 未找到Blender 3.6
exit /b 1
)
else (
echo Blender 3.6 已安装
)
REM Create gaussian_splatting_hair environment
@CALL cd %PROJECT_DIR%
@CALL "%~dp0micromamba.exe" create -n gaussian_splatting_hair python=3.9 ^