Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
71eabe6
Add CosmosPredict2 and ModelLumina2 architectures; enhance key handli…
luisrguerra Jun 7, 2026
55bbe2f
Update README.md to clarify supported model architectures and usage i…
luisrguerra Jun 7, 2026
1454240
Add packaging to requirements.txt
luisrguerra Jun 7, 2026
3c01b77
Specify exact versions for dependencies in requirements.txt
luisrguerra Jun 7, 2026
f2726a9
Update EasyQuantizationGUI.py to version 1.12; enhance UI
luisrguerra Jun 7, 2026
9e59703
Refactor color palette and button foreground color for improved UI ae…
luisrguerra Jun 7, 2026
9af2358
Enhance quantization hints with detailed descriptions for better user…
luisrguerra Jun 7, 2026
b3b0a1c
Refactor SUPPORTED_MODELS structure and simplify category handling in…
luisrguerra Jun 7, 2026
5216119
Add disabled foreground color for buttons and remove duplicate white …
luisrguerra Jun 7, 2026
ad1f46e
Update button hover effects and adjust text color for improved UI cla…
luisrguerra Jun 7, 2026
7fa627d
Remove scrollbar from supported models section for a simpler static l…
luisrguerra Jun 7, 2026
236a4f6
Remove emoji from header label for a cleaner title display
luisrguerra Jun 7, 2026
c95009d
Update file dialog to filter only .safetensors model files
luisrguerra Jun 7, 2026
2e66a80
Update file dialog to support additional model file types
luisrguerra Jun 7, 2026
92331e4
Replace old screenshot with new image
luisrguerra Jun 7, 2026
376de16
Merge branch 'main' of https://github.com/luisrguerra/EasyQuantizatio…
luisrguerra Jun 7, 2026
931d88d
Refactor batch script for improved virtual environment setup and erro…
luisrguerra Jun 7, 2026
1003319
Improve error messages and logging in tensor handling functions
luisrguerra Jun 7, 2026
835330a
Remove unsupported model architectures from the list
luisrguerra Jun 7, 2026
228b5d9
Update README.md
luisrguerra Jun 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 66 additions & 17 deletions EasyQuantizationGUI.bat
Original file line number Diff line number Diff line change
@@ -1,30 +1,79 @@
@echo off
REM Check if pip is installed and show output only if it needs to be installed
setlocal EnableDelayedExpansion

set "APP_ENTRY=EasyQuantizationGUI.py"
set "VENV_DIR=venv"
set "VENV_ACTIVATE=%VENV_DIR%\Scripts\activate.bat"
set "REQUIREMENTS=requirements.txt"

REM ── Python availability ────────────────────────────────────────────────────
python --version >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo [ERROR] Python was not found. Please install Python and ensure it is on your PATH.
goto :error
)

REM ── pip availability ───────────────────────────────────────────────────────
python -m pip --version >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo Installing pip...
echo [INFO] pip not found. Installing via ensurepip...
python -m ensurepip --default-pip
if %ERRORLEVEL% neq 0 (
echo [ERROR] Failed to install pip.
goto :error
)
) else (
python -m pip install --upgrade pip >nul 2>&1
)

REM Check if virtual environment exists, create if it doesn't
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
call venv\Scripts\activate
echo Installing requirements...
pip install -r requirements.txt
echo Setup complete!
REM ── Virtual environment setup ──────────────────────────────────────────────
if not exist "%VENV_DIR%\" (
echo [INFO] Virtual environment not found. Creating "%VENV_DIR%"...
python -m venv "%VENV_DIR%"
if %ERRORLEVEL% neq 0 (
echo [ERROR] Failed to create virtual environment.
goto :error
)

call "%VENV_ACTIVATE%"
if %ERRORLEVEL% neq 0 (
echo [ERROR] Failed to activate virtual environment.
goto :error
)

echo [INFO] Installing dependencies from "%REQUIREMENTS%"...
pip install -r "%REQUIREMENTS%"
if %ERRORLEVEL% neq 0 (
echo [ERROR] Dependency installation failed.
goto :error
)

echo [INFO] Setup complete.
echo.
) else (
call venv\Scripts\activate
call "%VENV_ACTIVATE%"
if %ERRORLEVEL% neq 0 (
echo [ERROR] Failed to activate virtual environment.
goto :error
)
)

REM Run the application
python EasyQuantizationGUI.py

REM Keep the window open if there's an error
REM ── Launch application ─────────────────────────────────────────────────────
echo [INFO] Starting %APP_ENTRY%...
python "%APP_ENTRY%"
if %ERRORLEVEL% neq 0 (
pause
)
echo [ERROR] Application exited with an error (code: %ERRORLEVEL%).
goto :error
)

goto :end

:error
echo.
echo Press any key to exit...
pause >nul
exit /b 1

:end
endlocal
exit /b 0
Loading