diff --git a/shortlist.bat b/shortlist.bat index aceb727..1f5aea1 100644 --- a/shortlist.bat +++ b/shortlist.bat @@ -1,16 +1,25 @@ @echo off 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 Photo Judgers — Shortlist Builder echo ======================================== echo. -REM Activate conda env 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. +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 %* +) \ No newline at end of file diff --git a/shortlist_top.bat b/shortlist_top.bat new file mode 100644 index 0000000..85f2f5d --- /dev/null +++ b/shortlist_top.bat @@ -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 %* \ No newline at end of file