diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-25 10:18:57 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-25 10:18:57 +0200 |
| commit | 917c3d9a777d343b422599f291f242f4bf025ba0 (patch) | |
| tree | be5c034aff63c272dab46153d51b34dc50dc5dc4 /lib/hyperstack | |
| parent | f971f27dfd11bc9047af22c57e5cbbb7b2d2aa8a (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 'lib/hyperstack')
0 files changed, 0 insertions, 0 deletions
