Commit ·
06a6f75
1
Parent(s): 2711812
Fix looping batch files.
Browse files- calibrate.bat +9 -1
- easy.bat +4 -0
calibrate.bat
CHANGED
|
@@ -7,31 +7,38 @@ echo.
|
|
| 7 |
echo Press CTRL+C to cancel at any time.
|
| 8 |
echo.
|
| 9 |
|
|
|
|
| 10 |
set /p metric="Metric (cti, f0.5, f1, f2, f<beta>, j, p4; press ENTER for cti): "
|
| 11 |
if "%metric%"=="" set "metric=cti"
|
| 12 |
|
|
|
|
| 13 |
set /p min_score="Minimum score (press ENTER for 0.0): "
|
| 14 |
if "%min_score%"=="" set "min_score=0.0"
|
| 15 |
|
|
|
|
| 16 |
set /p min_precision="Minimum precision (0.0 to 1.0; press ENTER for 0.098): "
|
| 17 |
if "%min_precision%"=="" set "min_precision=0.098"
|
| 18 |
|
|
|
|
| 19 |
set /p min_recall="Minimum recall (0.0 to 1.0; press ENTER for 0.198): "
|
| 20 |
if "%min_recall%"=="" set "min_recall=0.198"
|
| 21 |
|
|
|
|
| 22 |
set /p min_threshold="Minimum threshold (0.0 to 1.0; press ENTER for none): "
|
| 23 |
if "%min_threshold%"=="" set "min_threshold=0.0"
|
| 24 |
|
|
|
|
| 25 |
set /p max_threshold="Maximum threshold (0.0 to 1.0; press ENTER for none): "
|
| 26 |
if "%max_threshold%"=="" set "max_threshold=1.0"
|
| 27 |
|
| 28 |
-
set "exclude_tags="
|
| 29 |
echo.
|
| 30 |
echo Paste or write list of tags to exclude, one per line. Press ENTER to skip. At end of list, press ENTER.
|
| 31 |
echo Tags should be in e621 format, like 3d_^(artwork^). Use vulva tags instead of pussy tags.
|
| 32 |
echo.
|
| 33 |
|
|
|
|
| 34 |
:exclude_loop
|
|
|
|
| 35 |
set /p tag=
|
| 36 |
if "%tag%"=="" goto exclude_done
|
| 37 |
set "exclude_tags=%exclude_tags% %tag%"
|
|
@@ -48,6 +55,7 @@ echo =========================================
|
|
| 48 |
echo.
|
| 49 |
|
| 50 |
:ok_loop
|
|
|
|
| 51 |
set /p ok="Ok? (y/n): "
|
| 52 |
if "%ok%"=="y" goto ok_done
|
| 53 |
if "%ok%"=="n" exit /b
|
|
|
|
| 7 |
echo Press CTRL+C to cancel at any time.
|
| 8 |
echo.
|
| 9 |
|
| 10 |
+
set "metric="
|
| 11 |
set /p metric="Metric (cti, f0.5, f1, f2, f<beta>, j, p4; press ENTER for cti): "
|
| 12 |
if "%metric%"=="" set "metric=cti"
|
| 13 |
|
| 14 |
+
set "min_score="
|
| 15 |
set /p min_score="Minimum score (press ENTER for 0.0): "
|
| 16 |
if "%min_score%"=="" set "min_score=0.0"
|
| 17 |
|
| 18 |
+
set "min_precision="
|
| 19 |
set /p min_precision="Minimum precision (0.0 to 1.0; press ENTER for 0.098): "
|
| 20 |
if "%min_precision%"=="" set "min_precision=0.098"
|
| 21 |
|
| 22 |
+
set "min_recall="
|
| 23 |
set /p min_recall="Minimum recall (0.0 to 1.0; press ENTER for 0.198): "
|
| 24 |
if "%min_recall%"=="" set "min_recall=0.198"
|
| 25 |
|
| 26 |
+
set "min_threshold="
|
| 27 |
set /p min_threshold="Minimum threshold (0.0 to 1.0; press ENTER for none): "
|
| 28 |
if "%min_threshold%"=="" set "min_threshold=0.0"
|
| 29 |
|
| 30 |
+
set "max_threshold="
|
| 31 |
set /p max_threshold="Maximum threshold (0.0 to 1.0; press ENTER for none): "
|
| 32 |
if "%max_threshold%"=="" set "max_threshold=1.0"
|
| 33 |
|
|
|
|
| 34 |
echo.
|
| 35 |
echo Paste or write list of tags to exclude, one per line. Press ENTER to skip. At end of list, press ENTER.
|
| 36 |
echo Tags should be in e621 format, like 3d_^(artwork^). Use vulva tags instead of pussy tags.
|
| 37 |
echo.
|
| 38 |
|
| 39 |
+
set "exclude_tags="
|
| 40 |
:exclude_loop
|
| 41 |
+
set "tag="
|
| 42 |
set /p tag=
|
| 43 |
if "%tag%"=="" goto exclude_done
|
| 44 |
set "exclude_tags=%exclude_tags% %tag%"
|
|
|
|
| 55 |
echo.
|
| 56 |
|
| 57 |
:ok_loop
|
| 58 |
+
set "ok="
|
| 59 |
set /p ok="Ok? (y/n): "
|
| 60 |
if "%ok%"=="y" goto ok_done
|
| 61 |
if "%ok%"=="n" exit /b
|
easy.bat
CHANGED
|
@@ -13,6 +13,7 @@ echo.
|
|
| 13 |
IF EXIST venv goto ready
|
| 14 |
|
| 15 |
:install_loop
|
|
|
|
| 16 |
set /p ok="Would you like to install JTP-3 requirements here? (y/n): "
|
| 17 |
if "%ok%"=="y" goto install
|
| 18 |
if "%ok%"=="n" exit /b
|
|
@@ -37,6 +38,7 @@ echo update: Update to the latest version of JTP-3. Requires git.
|
|
| 37 |
echo.
|
| 38 |
|
| 39 |
:action_loop
|
|
|
|
| 40 |
set /p action="What would you like to do? "
|
| 41 |
if "%action%"=="autotag" goto autotag
|
| 42 |
if "%action%"=="inference" goto autotag
|
|
@@ -58,6 +60,7 @@ if EXIST calibration.csv (
|
|
| 58 |
)
|
| 59 |
|
| 60 |
:target_loop
|
|
|
|
| 61 |
set /p target="Path (folder or file): "
|
| 62 |
if "%target%"=="" (
|
| 63 |
echo.
|
|
@@ -67,6 +70,7 @@ if NOT EXIST "%target%" (
|
|
| 67 |
echo File or folder could not be found.
|
| 68 |
goto target_loop
|
| 69 |
)
|
|
|
|
| 70 |
set /p recurse="Autotag folders inside (y, or anything else for no): "
|
| 71 |
if "%recurse%"=="y" (
|
| 72 |
set "recurse=-r"
|
|
|
|
| 13 |
IF EXIST venv goto ready
|
| 14 |
|
| 15 |
:install_loop
|
| 16 |
+
set "ok="
|
| 17 |
set /p ok="Would you like to install JTP-3 requirements here? (y/n): "
|
| 18 |
if "%ok%"=="y" goto install
|
| 19 |
if "%ok%"=="n" exit /b
|
|
|
|
| 38 |
echo.
|
| 39 |
|
| 40 |
:action_loop
|
| 41 |
+
set "action="
|
| 42 |
set /p action="What would you like to do? "
|
| 43 |
if "%action%"=="autotag" goto autotag
|
| 44 |
if "%action%"=="inference" goto autotag
|
|
|
|
| 60 |
)
|
| 61 |
|
| 62 |
:target_loop
|
| 63 |
+
set "target="
|
| 64 |
set /p target="Path (folder or file): "
|
| 65 |
if "%target%"=="" (
|
| 66 |
echo.
|
|
|
|
| 70 |
echo File or folder could not be found.
|
| 71 |
goto target_loop
|
| 72 |
)
|
| 73 |
+
set "recurse="
|
| 74 |
set /p recurse="Autotag folders inside (y, or anything else for no): "
|
| 75 |
if "%recurse%"=="y" (
|
| 76 |
set "recurse=-r"
|