File size: 830 Bytes
9758e85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@ECHO OFF
CALL environment.bat passive
set SAGEATTN_DEBUG=1
ECHO # Modified startup bat for SageAttention support
ECHO.
ECHO Checking for SageAttention installation...
.\python_embeded\python.exe -c "import sageattention" >nul 2>&1
if %errorlevel%==0 (
    ECHO SageAttention module detected.
) else (
    .\python_embeded\python.exe -c "import sage_attention" >nul 2>&1
    if %errorlevel%==0 (
            ECHO SageAttention module detected.
    ) else (
        ECHO WARNING: SageAttention not found in the embedded Python environment.
        ECHO You may need to install it manually.
	pause
	exit /b 1
    )
)

SET COMFYPARAMS=--windows-standalone-build --use-sage-attention
ECHO Starting ComfyUI with parameters "%COMFYPARAMS%" ...
.\python_embeded\python.exe -s ComfyUI\main.py %COMFYPARAMS%
PAUSE