51 lines
1.3 KiB
Batchfile
51 lines
1.3 KiB
Batchfile
@echo off
|
|
chcp 65001 >nul 2>&1
|
|
|
|
set "PYTHON=..\python_embeded\python.exe"
|
|
set "CKPT_DIR=..\ComfyUI\models\checkpoints"
|
|
|
|
:: ============================================================
|
|
:: SETTINGS — Change this to your checkpoint filename
|
|
:: ============================================================
|
|
set "CKPT_NAME=FernflowerAI-2D.safetensors"
|
|
:: ============================================================
|
|
|
|
echo.
|
|
echo ================================================================
|
|
echo SDXL Checkpoint Inspector
|
|
echo ================================================================
|
|
echo.
|
|
echo Inspecting: %CKPT_NAME%
|
|
echo.
|
|
|
|
if not exist "%PYTHON%" (
|
|
echo [X] Python not found: %PYTHON%
|
|
echo Make sure you run this from the scripts folder
|
|
goto :fail
|
|
)
|
|
|
|
if not exist "inspect_checkpoint.py" (
|
|
echo [X] Script not found: inspect_checkpoint.py
|
|
goto :fail
|
|
)
|
|
|
|
if not exist "%CKPT_DIR%\%CKPT_NAME%" (
|
|
echo [X] Checkpoint not found: %CKPT_NAME%
|
|
echo.
|
|
echo Available checkpoints:
|
|
for %%F in ("%CKPT_DIR%\*.safetensors") do echo %%~nxF
|
|
goto :fail
|
|
)
|
|
|
|
%PYTHON% inspect_checkpoint.py "%CKPT_DIR%\%CKPT_NAME%"
|
|
|
|
echo.
|
|
pause
|
|
exit /b 0
|
|
|
|
:fail
|
|
echo.
|
|
echo [X] Error! Check output above.
|
|
echo.
|
|
pause
|
|
exit /b 1 |