| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- @echo off
- REM LightGlue Demo - GPU Accelerated Launcher (Python 3.12 + CUDA 12.1)
- REM This version uses Python 3.12 with GPU support
- REM Skip some Windows startup delays
- chcp 65001 >nul 2>&1
- REM Configuration
- set "CAMERA_IP=192.168.0.28"
- set "CAMERA_PORT=4747"
- set "MAX_KEYPOINTS=256"
- echo.
- echo ========================================
- echo LightGlue Camera Demo - GPU Mode
- echo Python 3.12 + CUDA 12.1
- echo ========================================
- echo.
- REM Check if Python 3.12 is available
- py -3.12 --version >nul 2>&1
- if errorlevel 1 (
- echo ERROR: Python 3.12 not found!
- echo Please install Python 3.12 or use start_demo_fast.bat instead
- pause
- exit /b 1
- )
- echo Python 3.12 detected, using GPU acceleration
- echo.
- REM Check for custom arguments
- if "%~1"=="" (
- REM Use default settings
- echo Using default camera: %CAMERA_IP%:%CAMERA_PORT%
- echo Max keypoints: %MAX_KEYPOINTS%
- echo.
- echo Starting demo...
- echo.
-
- REM Run with optimized settings
- py -3.12 "%~dp0demo_lightglue_camera_position_single_window.py" --input "http://%CAMERA_IP%:%CAMERA_PORT%/video" --max_keypoints %MAX_KEYPOINTS%
- ) else (
- REM Pass all arguments to the script
- py -3.12 "%~dp0demo_lightglue_camera_position_single_window.py" %*
- )
- if errorlevel 1 (
- echo.
- echo Demo exited with error.
- pause
- )
|