-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOpenCut-Server.bat
More file actions
32 lines (26 loc) · 879 Bytes
/
OpenCut-Server.bat
File metadata and controls
32 lines (26 loc) · 879 Bytes
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
@echo off
setlocal
set "OPENCUT_HOME=%~dp0"
set "OPENCUT_HOME=%OPENCUT_HOME:~0,-1%"
if exist "%OPENCUT_HOME%\python\python.exe" (
set "PYTHON=%OPENCUT_HOME%\python\python.exe"
set "PATH=%OPENCUT_HOME%\python;%OPENCUT_HOME%\python\Scripts;%PATH%"
) else (
set "PYTHON=python"
)
if exist "%OPENCUT_HOME%\ffmpeg" set "PATH=%OPENCUT_HOME%\ffmpeg;%PATH%"
if exist "%OPENCUT_HOME%\models" (
set "OPENCUT_BUNDLED=true"
set "WHISPER_MODELS_DIR=%OPENCUT_HOME%\models\whisper"
set "TORCH_HOME=%OPENCUT_HOME%\models\demucs"
set "OPENCUT_FLORENCE_DIR=%OPENCUT_HOME%\models\florence"
set "OPENCUT_LAMA_DIR=%OPENCUT_HOME%\models\lama"
)
echo.
echo OpenCut Server - Debug Mode
echo ===========================
echo This window shows server output for troubleshooting.
echo Close this window to stop the server.
echo.
"%PYTHON%" -m opencut.server
pause