-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_setup.bat
More file actions
130 lines (114 loc) · 2.85 KB
/
check_setup.bat
File metadata and controls
130 lines (114 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@echo off
REM PresentaPulse - Setup Check Script
REM This script checks if PresentaPulse is properly set up
echo.
echo ========================================
echo PresentaPulse - Setup Check
echo ========================================
echo.
REM Change to the script directory
cd /d "%~dp0"
set ERRORS=0
set WARNINGS=0
REM Check Python
echo [1/6] Checking Python...
python --version >nul 2>&1
if errorlevel 1 (
echo [FAIL] Python not found
set /a ERRORS+=1
) else (
python --version
echo [OK] Python found
)
echo.
REM Check pip
echo [2/6] Checking pip...
pip --version >nul 2>&1
if errorlevel 1 (
echo [FAIL] pip not found
set /a ERRORS+=1
) else (
echo [OK] pip found
)
echo.
REM Check src directory
echo [3/6] Checking LivePortrait integration (src directory)...
if not exist "src" (
echo [FAIL] src directory not found
echo [INFO] Clone LivePortrait and copy src directory
set /a ERRORS+=1
) else (
echo [OK] src directory found
)
echo.
REM Check key dependencies
echo [4/6] Checking key dependencies...
python -c "import gradio" >nul 2>&1
if errorlevel 1 (
echo [FAIL] gradio not installed
echo [INFO] Run: pip install -r requirements.txt
set /a ERRORS+=1
) else (
echo [OK] gradio installed
)
python -c "import tyro" >nul 2>&1
if errorlevel 1 (
echo [WARN] tyro not installed
set /a WARNINGS+=1
) else (
echo [OK] tyro installed
)
echo.
REM Check directories
echo [5/6] Checking required directories...
if not exist "output" (
echo [WARN] output directory not found (will be created automatically)
set /a WARNINGS+=1
) else (
echo [OK] output directory exists
)
if not exist "pretrained_weights" (
echo [WARN] pretrained_weights directory not found
echo [INFO] Download models (see SETUP.md)
set /a WARNINGS+=1
) else (
echo [OK] pretrained_weights directory exists
)
echo.
REM Check assets
echo [6/6] Checking assets...
if not exist "assets\source" (
echo [WARN] assets\source directory not found
set /a WARNINGS+=1
) else (
echo [OK] assets\source directory exists
)
if not exist "assets\driving" (
echo [WARN] assets\driving directory not found
set /a WARNINGS+=1
) else (
echo [OK] assets\driving directory exists
)
echo.
REM Summary
echo ========================================
echo Summary
echo ========================================
echo.
if %ERRORS% EQU 0 (
echo [SUCCESS] No critical errors found!
if %WARNINGS% GTR 0 (
echo [WARN] %WARNINGS% warning(s) - see above
)
echo.
echo You can run PresentaPulse with: run.bat
) else (
echo [FAIL] %ERRORS% error(s) found - please fix before running
if %WARNINGS% GTR 0 (
echo [WARN] %WARNINGS% warning(s) - see above
)
echo.
echo See SETUP.md for installation instructions
)
echo.
pause