-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_windows.bat
More file actions
48 lines (42 loc) · 1.17 KB
/
run_windows.bat
File metadata and controls
48 lines (42 loc) · 1.17 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
@echo off
echo ========================================
echo YOPO Tracker - Windows Docker Setup
echo ========================================
echo.
REM Check if Docker is running
docker info >nul 2>&1
if errorlevel 1 (
echo ERROR: Docker is not running!
echo Please start Docker Desktop and try again.
pause
exit /b 1
)
echo Step 1: Download and install VcXsrv (X Server for Windows)
echo Please download from: https://sourceforge.net/projects/vcxsrv/
echo.
echo After installation, run XLaunch with these settings:
echo - Display number: 0
echo - Start no client
echo - Disable access control (IMPORTANT!)
echo.
set /p READY="Press Enter when VcXsrv is running..."
echo.
echo Step 2: Building Docker image (this may take several minutes)...
docker build -t yopo-tracker .
if errorlevel 1 (
echo ERROR: Docker build failed!
pause
exit /b 1
)
echo.
echo Step 3: Running YOPO Tracker...
docker run --rm -it ^
-e DISPLAY=host.docker.internal:0.0 ^
-v "%cd%":/app ^
yopo-tracker
echo.
echo ========================================
echo Program finished!
echo GIF files should be in the gifs/ folder
echo ========================================
pause