From bce23b0deb33cadd54d01765576965c3cfb96d69 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 22 Mar 2026 11:16:51 +0100 Subject: docs(cnn_v3): add uv inline deps to train_cnn_v3.py + HOW_TO_CNN note MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit handoff(Gemini): train_cnn_v3.py now has uv script metadata block (torch, torchvision, numpy, pillow, opencv-python). HOW_TO_CNN §2 Prerequisites updated with uv quick-start alternative. --- cnn_v3/docs/HOW_TO_CNN.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cnn_v3/docs') diff --git a/cnn_v3/docs/HOW_TO_CNN.md b/cnn_v3/docs/HOW_TO_CNN.md index 4e64d23..020f79c 100644 --- a/cnn_v3/docs/HOW_TO_CNN.md +++ b/cnn_v3/docs/HOW_TO_CNN.md @@ -289,6 +289,13 @@ pip install torch torchvision pillow numpy opencv-python cd cnn_v3/training ``` +**With `uv` (no pip needed):** dependencies are declared inline in `train_cnn_v3.py` +and installed automatically on first run: +```bash +cd cnn_v3/training +uv run train_cnn_v3.py --input dataset/ --epochs 1 --patch-size 32 --detector random +``` + ### Quick-start commands **Smoke test — 1 epoch, validates end-to-end without GPU:** -- cgit v1.2.3