feat: shortlist.bat offers threshold or top-N%% mode; add shortlist_top.bat

This commit is contained in:
Kareem Horstink
2026-08-24 05:15:01 +00:00
parent a2d2387303
commit 8a113e58cc
2 changed files with 28 additions and 4 deletions
+13 -4
View File
@@ -1,16 +1,25 @@
@echo off @echo off
REM Photo Judgers — Shortlist Builder (Windows) REM Photo Judgers — Shortlist Builder (Windows)
REM Reads output.json, asks for thresholds, copies photos to shortlist folder REM Reads output.json, filters photos, copies to shortlist folder.
REM Offers two modes: threshold-based or top N%.
echo ======================================== echo ========================================
echo Photo Judgers — Shortlist Builder echo Photo Judgers — Shortlist Builder
echo ======================================== echo ========================================
echo. echo.
REM Activate conda env
call conda activate photo_judgers call conda activate photo_judgers
echo Running shortlist builder... echo 1. By score threshold (keep all above X)
echo 2. By top N%% (keep top X%%)
echo. echo.
set /p mode=" Choose [1/2]: "
python -m src.shortlist %* if "%mode%"=="1" (
python -m src.shortlist %*
) else if "%mode%"=="2" (
python -m src.shortlist_top %*
) else (
echo Invalid choice. Running threshold mode.
python -m src.shortlist %*
)
+15
View File
@@ -0,0 +1,15 @@
@echo off
REM Photo Judgers — Shortlist Top N%% (Windows)
REM Reads output.json, picks the top X%% by score, copies to folder.
echo ========================================
echo Photo Judgers — Top N%% Shortlist
echo ========================================
echo.
call conda activate photo_judgers
echo Running top N%% shortlist...
echo.
python -m src.shortlist_top %*