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/training/train_cnn_v3.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cnn_v3/training/train_cnn_v3.py') diff --git a/cnn_v3/training/train_cnn_v3.py b/cnn_v3/training/train_cnn_v3.py index 6da9abb..083efb0 100644 --- a/cnn_v3/training/train_cnn_v3.py +++ b/cnn_v3/training/train_cnn_v3.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +# /// script +# requires-python = ">=3.10" +# dependencies = ["torch", "torchvision", "numpy", "pillow", "opencv-python"] +# /// """CNN v3 Training Script — U-Net + FiLM Architecture: -- cgit v1.2.3