From 455d9a790cb041907e7cdbcba8807d6d7cf885b6 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 20 Oct 2026 15:46:32 -0700 Subject: [PATCH] stemd: AUTO_SCAN off by default Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 +- server/README.md | 2 +- server/stemd.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c3091d5..5997d34 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ To update, copy the new files, rebuild, `docker rm -f` the container and run it | `MODEL` | `roformer_bs_sw` | Any id from [the model table](#separation-models) | | `DEVICE` | `cuda` | `cuda`, `cuda:N` or `cpu` | | `RESCAN_MIN` | `30` | Minutes between library scans once caught up | -| `AUTO_SCAN` | `1` | `0` to skip library scans and only separate Stem Now requests | +| `AUTO_SCAN` | `0` | `1` to scan the library on a timer. Off by default: only Stem Now requests are separated | | `FP16` | `1` | Half precision on the GPU (`0` for fp32) | | `OVERLAP`, `SEGMENT`, `SHIFTS` | `0.25`, `0`, `0` | Separation quality, same as the desktop app | diff --git a/server/README.md b/server/README.md index d9472b2..d1f08ba 100644 --- a/server/README.md +++ b/server/README.md @@ -129,7 +129,7 @@ the app would briefly see no stems. | `MODEL` | `roformer_bs_sw` | any id from `stemify/catalog.py` | | `DEVICE` | `cuda` | `cuda`, `cuda:N` or `cpu` | | `RESCAN_MIN` | `30` | minutes between scans once caught up | -| `AUTO_SCAN` | `1` | `0` = never scan the library, only do Stem Now requests | +| `AUTO_SCAN` | `0` | `1` = scan the library every `RESCAN_MIN`; `0` = only do Stem Now requests | | `FP16` | `1` | half precision on the GPU (`0` for fp32) | | `OVERLAP`, `SEGMENT`, `SHIFTS` | `0.25`, `0`, `0` | as in the desktop app's settings | diff --git a/server/stemd.py b/server/stemd.py index b455a69..0d5164f 100644 --- a/server/stemd.py +++ b/server/stemd.py @@ -20,7 +20,7 @@ Settings (environment): MODEL roformer_bs_sw any id from stemify/catalog.py DEVICE cuda cuda, cuda:N or cpu RESCAN_MIN 30 minutes between scans once caught up - AUTO_SCAN 1 0 = never scan the library; only separate Stem Now requests + AUTO_SCAN 0 1 = scan the library on a timer; 0 = only separate Stem Now requests FP16 1 half precision on the GPU OVERLAP / SEGMENT / SHIFTS as in the desktop app's settings """ @@ -48,7 +48,7 @@ MODELS_DIR = os.environ.get("MODELS_DIR", "/models") MODEL = os.environ.get("MODEL", "roformer_bs_sw") DEVICE = os.environ.get("DEVICE", "cuda") RESCAN_S = float(os.environ.get("RESCAN_MIN", "30")) * 60 -AUTO_SCAN = os.environ.get("AUTO_SCAN", "1") not in ("0", "false", "no", "") +AUTO_SCAN = os.environ.get("AUTO_SCAN", "0") in ("1", "true", "yes") FP16 = os.environ.get("FP16", "1") not in ("0", "false", "no", "") OVERLAP = float(os.environ.get("OVERLAP", "0.25")) SEGMENT = float(os.environ.get("SEGMENT", "0"))