diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-24 09:58:21 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-24 09:58:21 +0200 |
| commit | c2d54f7a4823ca0de99fdb8cc0a094b0cdf4cbb4 (patch) | |
| tree | d790cd7ebf1f2c97cf686dfdf23622b3c7e83823 /workflows | |
| parent | 9b3c83d4860566c8d5d682821314378d0c18c35d (diff) | |
Add ComfyUI photo enhancement VM and photo-enhance.rb client
- hyperstack-vm-photo.toml: L40 GPU VM config (192.168.3.4, ~$1/hr)
with [comfyui] section for port, model dirs, and pre-downloaded weights
- hyperstack.rb: full ComfyUI provisioning support alongside vLLM/Ollama —
config accessors, comfyui_install_script (git clone + venv + systemd),
RemoteProvisioner#install_comfyui, Manager#create integration, UFW rules,
status/service_mode_summary updates, --comfyui/--no-comfyui CLI flags
- photo-enhance.rb: standalone client — uploads photos, submits ComfyUI
workflow, polls for output, downloads PNG, converts to JPEG at quality 92
so file sizes match originals; --watch mode; processed-file manifest
- workflows/photo-enhance.json: Real-ESRGAN x4plus enhance-in-place workflow
(upscale 4x for enhancement, ImageScaleBy 0.25 back to original resolution)
- README.md: Photo enhancement section with quickstart, config reference,
workflow customisation notes, and performance table
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'workflows')
| -rw-r--r-- | workflows/photo-enhance.json | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/workflows/photo-enhance.json b/workflows/photo-enhance.json new file mode 100644 index 0000000..6be7dfa --- /dev/null +++ b/workflows/photo-enhance.json @@ -0,0 +1,42 @@ +{ + "1": { + "class_type": "LoadImage", + "_meta": {"title": "Load Input Photo"}, + "inputs": { + "image": "NODE_INPUT_IMAGE", + "upload": "image" + } + }, + "2": { + "class_type": "UpscaleModelLoader", + "_meta": {"title": "Load Real-ESRGAN Model"}, + "inputs": { + "model_name": "RealESRGAN_x4plus.pth" + } + }, + "3": { + "class_type": "ImageUpscaleWithModel", + "_meta": {"title": "Enhance (internal 4x pass)"}, + "inputs": { + "upscale_model": ["2", 0], + "image": ["1", 0] + } + }, + "4": { + "class_type": "ImageScaleBy", + "_meta": {"title": "Scale back to original resolution"}, + "inputs": { + "image": ["3", 0], + "upscale_method": "lanczos", + "scale_by": 0.25 + } + }, + "5": { + "class_type": "SaveImage", + "_meta": {"title": "Save Enhanced Photo"}, + "inputs": { + "images": ["4", 0], + "filename_prefix": "enhanced_" + } + } +} |
