Oysiyl commited on
Commit
e2cedf0
·
1 Parent(s): 1d3c29b

Add Stable Cascade QR filter for artistic pipeline

Browse files

- Implement apply_stable_cascade_qr_filter() using kornia HSV conversion
- Add filter to artistic pipeline only (prevents grayscale output)
- Use 3-level brightness quantization (0.0, 0.5, 1.0) for better ControlNet perception
- Apply Gaussian blur (kernel=15) and adaptive thresholding (33% rule)
- Add UI checkbox in artistic settings (disabled by default)
- Fix parameter naming: rename 'progress' to 'gr_progress' throughout
- Add enable_cascade_filter parameter to _pipeline_artistic() function

Filter improves QR scannability by providing better brightness guidance to the
brightness ControlNet while maintaining color output through FreeU/SAG enhancements.

Files changed (1) hide show
  1. app.py +0 -0
app.py CHANGED
The diff for this file is too large to render. See raw diff