summaryrefslogtreecommitdiff
path: root/photo-enhance.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-25 10:18:57 +0200
committerPaul Buetow <paul@buetow.org>2026-03-25 10:18:57 +0200
commitc2477fe84aa96ba1fa6e6e75933d08e84f6921eb (patch)
tree2c88aeb8e6061f5d5d0a46c320c9618d8c18a1c2 /photo-enhance.rb
parente5934cea4f6cd1ceadd46864886a3f1a7bbe2491 (diff)
photo-enhance: add CodeFormerRestore stub and ximgproc fallback
Two runtime fixes discovered during testing: 1. CodeFormerRestore stub: CodeFormer custom node (comfyui-reactor-node) is not installed on fresh VMs. Added a passthrough stub in smart_photo_node.py that keeps the workflow intact while allowing the other stages to work. Registered last so the real node from a separately installed package takes priority if present. 2. Guided filter fallback: cv2.ximgproc.guidedFilter requires opencv-contrib (opencv-contrib-python-headless). Added a try/except in _apply_detail that falls back to cv2.bilateralFilter when ximgproc is unavailable. The contrib package was also installed on the VM for full quality. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'photo-enhance.rb')
0 files changed, 0 insertions, 0 deletions