From 8a113e58cc28f5758ae4f6a14af8d4368eba1086 Mon Sep 17 00:00:00 2001 From: Kareem Horstink Date: Mon, 24 Aug 2026 05:15:01 +0000 Subject: [PATCH] feat: shortlist.bat offers threshold or top-N%% mode; add shortlist_top.bat --- shortlist.bat | 17 +++++++++++++---- shortlist_top.bat | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 shortlist_top.bat 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