From 96a349b9874c6cdaac525ba062a0f4f90c9bc3ed Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 10 Feb 2026 10:27:44 +0100 Subject: feat: Add coordinate-aware CNN layer 0 for position-dependent stylization - Implement CoordConv2d custom layer accepting (x,y) patch center - Split layer 0 weights: rgba_weights (9x mat4x4) + coord_weights (mat2x4) - Add *_with_coord() functions to 3x3/5x5/7x7 convolution shaders - Update training script to generate coordinate grid and export split weights - Regenerate placeholder weights with new format Size impact: +32B coord weights + ~100B shader code = +132B total All 36 tests passing (100%) handoff(Claude): CNN coordinate awareness implemented, ready for training Co-Authored-By: Claude Sonnet 4.5 --- training/README.md | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 training/README.md (limited to 'training/README.md') diff --git a/training/README.md b/training/README.md new file mode 100644 index 0000000..08379ee --- /dev/null +++ b/training/README.md @@ -0,0 +1,167 @@ +# Image Style Processor + +A comprehensive Python script that applies artistic hand-drawn and futuristic effects to images. + +## Requirements + +- Python 3 +- OpenCV (cv2) +- NumPy + +Install dependencies: +```bash +pip install opencv-python numpy +``` + +## Usage + +```bash +python3 image_style_processor.py