This page covers first-time environment preparation for source execution on Windows. Use it after the core path when you need a repeatable install baseline.
py -3.13..venv313 or .venv).\path\to\amir2000_image_automation).sac+logos+ava1-l14-linearMSE.pth.
Before first run, set environment-specific values in amir2000_config.py (or environment variables if used in your setup).
PUBLIC_URL_BASE, REMOTE_BASE.DATA_DIR, INCOMING_DIR, BASE_PICK_DIR, STAGED_DIR, REJECTED_DIR.Do not run publish with invalid credentials or incorrect path values.
Base runtime libraries:
pyinstaller (build tooling)pillowpyspellcheckerpiexifmysql-connector-pythonScoring and ML stack:
numpytqdmopencv-pythonpyiqatorch + torchvision (CPU or CUDA wheels, auto-selected by setup script)
These are installed by helpers/setup_venv313_full.ps1 and also validated by preflight.
setup_venv313_full.ps1 does.venv313 (clean rebuild).pip.nvidia-smi and installs Torch CUDA wheels (cu121) when available; otherwise CPU wheels.Set-Location "\path\to\amir2000_image_automation"
pwsh -NoProfile -ExecutionPolicy Bypass -File .\helpers\setup_venv313_full.ps1
Set-Location "\path\to\amir2000_image_automation"
.\.venv313\Scripts\Activate.ps1
python .\init_db.py
Creates data/review.db and data/photos_info_revamp.db from init SQL.
ollama pull llama3.2-vision:latest
ollama pull minicpm-v:latest
If your config uses different model names, pull those exact names before first run.
Set-Location "\path\to\amir2000_image_automation"
.\.venv313\Scripts\Activate.ps1
ollama list
python .\main_set.py
logs/latest_run.log.For EXE runs, pin the scoring/caption runtime explicitly to your Python 3.13 venv. This avoids mixed-interpreter DLL issues on some Windows setups.
Set-Location "\path\to\amir2000_image_automation"
$env:AMIR_PYTHON = ".\.venv313\Scripts\python.exe"
.\dist\Amir2000ImageAutomation-MultiSet.exe
In stage logs, verify the line Score runtime python: ... (ver=(3, 13)).
preflight_multiset.ps1 checksThis script performs environment and build-readiness validation before packaging.
.venv313, .venv, or .venv_cuda) or creates .venv313 automatically.pip and installs base/scoring dependencies in the venv.caption_review_local.py and scoring weight file.Pillow, piexif, numpy, torch, pyiqa, etc.).distpath, workpath, specpath flags).helpers/preflight_report_YYYYMMDD_HHMMSS.txt and exits non-zero on FAIL items.BuildProfile behavior:
Lite: missing heavy scoring imports can be downgraded to WARN.Full: stricter; dependency failures are treated as blocking.Set-Location "\path\to\amir2000_image_automation"
pwsh -NoProfile -ExecutionPolicy Bypass -File .\helpers\preflight_multiset.ps1 -BuildProfile Full
pwsh -NoProfile -ExecutionPolicy Bypass -File .\helpers\build_multiset.ps1 -Clean -BuildProfile Lite
Use this path when preparing executable delivery artifacts.
After environment setup is validated, continue with operator flow instructions.