forked from nikopueringer/CorridorKey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall_CorridorKey_Windows.bat
More file actions
63 lines (54 loc) · 2.12 KB
/
Install_CorridorKey_Windows.bat
File metadata and controls
63 lines (54 loc) · 2.12 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
@echo off
TITLE CorridorKey Setup Wizard
echo ===================================================
echo CorridorKey - Windows Auto-Installer
echo ===================================================
echo.
:: 1. Check for uv — install it automatically if missing
where uv >nul 2>&1
if %errorlevel% equ 0 goto :uv_ready
echo [INFO] uv is not installed. Installing now...
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
if %errorlevel% neq 0 (
echo [ERROR] Failed to install uv. Please visit https://docs.astral.sh/uv/ for manual instructions.
pause
exit /b
)
:: uv installer adds to PATH via registry, but the current cmd session
:: doesn't see it yet. Add the default install location so we can continue.
set "PATH=%USERPROFILE%\.local\bin;%PATH%"
where uv >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] uv was installed but cannot be found on PATH.
echo Please close this window, open a new terminal, and run this script again.
pause
exit /b
)
echo [INFO] uv installed successfully.
echo.
:uv_ready
:: 2. Install all dependencies (Python, venv, and packages are handled automatically by uv)
echo [1/2] Installing Dependencies (This might take a while on first run)...
echo uv will automatically download Python if needed.
uv sync --extra cuda
if %errorlevel% neq 0 (
echo [ERROR] uv sync failed. Please check the output above for details.
pause
exit /b
)
:: 3. Download Weights
echo.
echo [2/2] Downloading CorridorKey Model Weights...
if not exist "CorridorKeyModule\checkpoints" mkdir "CorridorKeyModule\checkpoints"
if not exist "CorridorKeyModule\checkpoints\CorridorKey.pth" (
echo Downloading CorridorKey.pth...
curl.exe -L -o "CorridorKeyModule\checkpoints\CorridorKey.pth" "https://huggingface.co/nikopueringer/CorridorKey_v1.0/resolve/main/CorridorKey_v1.0.pth"
) else (
echo CorridorKey.pth already exists!
)
echo.
echo ===================================================
echo Setup Complete! You are ready to key!
echo Drag and drop folders onto CorridorKey_DRAG_CLIPS_HERE_local.bat
echo ===================================================
pause