forked from nerfstudio-project/nerfstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_cli.bat
More file actions
38 lines (32 loc) · 750 Bytes
/
Copy pathtest_cli.bat
File metadata and controls
38 lines (32 loc) · 750 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
33
34
35
36
37
38
@echo off
echo.
echo ========== Nerfstudio CLI Validator ==========
echo.
@echo off
REM Ensure UTF-8 output
chcp 65001 > nul
set PYTHONIOENCODING=utf-8
REM Check if CLI works
echo Running: ns-train --help
ns-train --help
if errorlevel 1 (
echo ❌ ERROR: ns-train failed to run. CLI may be broken or module not registered.
goto end
)
REM Check if viewer works
echo.
echo Running: ns-viewer --help
ns-viewer --help
if errorlevel 1 (
echo ❌ ERROR: ns-viewer failed to run.
goto end
)
REM Optional: Detect available trainers
echo.
echo 🔍 Listing available trainers:
ns-train --help | findstr /R "Usage:.*"
REM (Optional dry-run logic can be added here per addon)
echo.
echo ✅ CLI appears to be working correctly.
:end
pause