feat: shortlist.bat offers threshold or top-N%% mode; add shortlist_top.bat
This commit is contained in:
+13
-4
@@ -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 %*
|
||||
)
|
||||
@@ -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 %*
|
||||
Reference in New Issue
Block a user