Commit Graph

180 Commits

Author SHA1 Message Date
a4771f7139 feat: add runpod environment with variables and fix workflow paths
- Add runpod env with AI_ROOT, COMFYUI_ROOT, HF_CACHE, LOGS_DIR, BIN_DIR
- Update workflows/link-comfyui to use $AI_ROOT for absolute paths
- Workflows will now link correctly from /workspace/ai/comfyui/workflows
2025-11-22 21:12:45 +01:00
257c4aeaac fix: correct comfyui command path in supervisord.conf 2025-11-22 21:06:46 +01:00
2f818a403c feat: configure supervisord to run from /workspace/ai
- Create logs directory with .gitkeep
- Update .gitignore to track logs dir but ignore log files
- Update supervisord.conf with paths relative to /workspace/ai
- Add supervisor control scripts to arty.yml (start/stop/status/restart)
- All paths now use ../ to reference parent /workspace directory
2025-11-22 21:04:19 +01:00
cdc5176d9f chore: add supervisord runtime files to .gitignore 2025-11-22 20:59:15 +01:00
e2bfffe4c0 Revert "fix: remove HF_TOKEN environment variable reference from orchestrator service"
This reverts commit 6fe7c89aea.
2025-11-22 20:55:45 +01:00
6fe7c89aea fix: remove HF_TOKEN environment variable reference from orchestrator service
The HF_TOKEN environment variable is not available in the supervisord environment.
Since the orchestrator service has autostart=false, removing the HF_TOKEN reference
to allow supervisord to start successfully.
2025-11-22 20:55:01 +01:00
fcd23d4037 fix: correct relative paths in supervisord.conf
All paths now relative from /workspace directory where supervisord runs.
This makes the configuration truly portable.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:51:59 +01:00
897dcb175a refactor: reorganize directory structure and remove hardcoded paths
Move comfyui and vllm out of models/ directory to top level for better
organization. Replace all hardcoded /workspace paths with relative paths
to make the configuration portable across different environments.

Changes:
- Move models/comfyui/ → comfyui/
- Move models/vllm/ → vllm/
- Remove models/ directory (empty)
- Update arty.yml: replace /workspace with environment variables
- Update supervisord.conf: use relative paths from /workspace/ai
- Update all script references to use new paths
- Maintain TQDM_DISABLE=1 to fix BrokenPipeError

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:49:27 +01:00
9058b1f9dd feat: add ControlNet fusion workflow with example control images
Add multi-ControlNet workflow combining depth and canny edge control for
precise composition with SDXL. Includes example control images for testing.

Changes:
- Add controlnet-fusion-production-v1.json with 18 properly linked nodes
- Add examples/control_depth.png (radial gradient depth map)
- Add examples/control_canny.png (geometric edge detection)
- Chain depth → canny ControlNet application
- Configure for SDXL with 30 steps, CFG 7.0
- Support dual control strengths (depth: 0.8, canny: 0.6)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:33:13 +01:00
70cc5d8db0 feat: add ControlNet models to model configuration
Added 4 ControlNet models for SD 1.5 and SDXL:
- control_v11p_sd15_canny (SD 1.5 edge detection)
- control_v11p_sd15_depth (SD 1.5 depth maps)
- controlnet-canny-sdxl-1.0 (SDXL edge detection)
- controlnet-depth-sdxl-1.0 (SDXL depth maps)

Total size: ~8GB for all ControlNet models
All marked as non-essential (optional downloads)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:14:12 +01:00
6a3f0ab831 remove: ControlNet fusion workflow (requires unavailable models)
The ControlNet workflow requires:
- ControlNet models (not currently installed)
- Control images (user-provided)
- ComfyUI-Advanced-ControlNet custom nodes

This workflow cannot function without these dependencies, so removing
it from production workflows. Can be re-added when ControlNet models
are available in the model orchestrator.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:11:29 +01:00
37e07b1f75 fix: add missing node connections to ControlNet fusion workflow
The ControlNet workflow had no links between nodes. Added all required
connections for a complete multi-ControlNet pipeline:

- SDXL checkpoint → model/CLIP/VAE
- Load depth & canny control images
- Load ControlNet models
- Chain ControlNet applications (depth → canny)
- Text encoders → conditioning
- Sampler → VAE decode → save/preview

Also fixed checkpoint to use sd_xl_base_1.0.safetensors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:09:39 +01:00
4c4410a2fa fix: update batch pipeline to use SDXL instead of FLUX
Changed checkpoint from FLUX.1-schnell to sd_xl_base_1.0.safetensors
to match available models. Also updated sampling parameters for SDXL:
- Steps: 4 → 20 (SDXL needs more steps)
- CFG: 1.0 → 7.0 (standard for SDXL)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:04:12 +01:00
6fa8c21cfc fix: add missing node connections to batch pipeline workflow
The batch-pipeline workflow had no links between nodes, making it
non-functional in ComfyUI. Added all required inputs/outputs and
links to properly connect the workflow chain.

Changes:
- Added inputs/outputs to all nodes
- Created 10 links connecting the workflow
- Set batch size to 4 in EmptyLatentImage
- Simplified to 8 core nodes for clarity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 20:02:17 +01:00
002d89e221 fix: disable tqdm progress bars to prevent BrokenPipeError
Add TQDM_DISABLE=1 environment variable to ComfyUI service to fix
BrokenPipeError during sampling operations. This is caused by
ComfyUI-Manager's stderr wrapper interfering with tqdm's progress bar
mechanism.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:52:50 +01:00
81e71fbdcb fix: use exact INPUT_TYPES order from node code
Verified from /workspace/ComfyUI/nodes.py KSamplerAdvanced class.
Order: add_noise, noise_seed, control, steps, cfg, sampler, scheduler, start, end, return_noise

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:23:10 +01:00
db030a70ef fix: reorder widgets_values without add_noise, use randomize
Try: [seed, control, steps, cfg, sampler, scheduler, start, end, return_noise]

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:21:33 +01:00
cda815b4da fix: remove control_after_generate from widgets_values
Remove 'fixed' control parameter, only keep actual widget values.
Final: [enable, 42, 20, 8.0, euler, normal, 0, 10000, disable]

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:19:37 +01:00
d3119b8800 fix: add complete widgets_values for KSamplerAdvanced
Include all widget parameters: add_noise, noise_seed, control_after_generate, steps, cfg, sampler_name, scheduler, start_at_step, end_at_step, return_with_leftover_noise

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:14:56 +01:00
0386a6d0cb fix: remove add_noise from widgets_values
Widgets_values should not include add_noise dropdown.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:13:25 +01:00
904c299647 fix: use default KSamplerAdvanced values
Use API defaults for KSamplerAdvanced node parameters.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:11:25 +01:00
eb3b9c3836 fix: correct KSamplerAdvanced parameters for AnimateDiff workflow
Fix parameter order in KSamplerAdvanced node:
- Change sampler from 'euler' to 'dpmpp_2m' (valid sampler)
- Change scheduler from 'normal' to 'karras' (valid scheduler)
- Parameters now: [enable, 42, 25, 7.5, dpmpp_2m, karras, 0, 25, enable]

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:09:30 +01:00
18cd87fbd1 refactor: reorganize webdav-sync into dedicated directory
Clean up project structure by organizing WebDAV sync service properly.

Changes:
- Move scripts/comfyui_webdav_sync.py → webdav-sync/webdav_sync.py
- Create webdav-sync/requirements.txt with watchdog and webdavclient3
- Remove webdav dependencies from model-orchestrator/requirements.txt
- Delete unused scripts/ folder (start-all.sh, status.sh, stop-all.sh)
- Update supervisord.conf to use new path /workspace/ai/webdav-sync/webdav_sync.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 19:03:48 +01:00
79442bd62e feat: add WebDAV sync service for ComfyUI outputs
Add Python watchdog service to automatically sync ComfyUI outputs to HiDrive WebDAV storage.

Changes:
- Add scripts/comfyui_webdav_sync.py: File watcher service using watchdog + webdavclient3
- Update model-orchestrator/requirements.txt: Add watchdog and webdavclient3 dependencies
- Update supervisord.conf: Add webdav-sync program with ENV variable support
- Update arty.yml: Add service management scripts (start/stop/restart/status/logs)

WebDAV credentials are now loaded from .env file (WEBDAV_URL, WEBDAV_USERNAME, WEBDAV_PASSWORD, WEBDAV_REMOTE_PATH)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 18:58:18 +01:00
71d4e22240 fix: use non-interactive davfs2 installation 2025-11-22 18:35:37 +01:00
c4e26b8a84 fix: remove sudo commands from WebDAV setup for RunPod root user 2025-11-22 18:33:52 +01:00
c19ee7af88 feat: add WebDAV integration for HiDrive storage
Added setup/webdav script to arty.yml:
- Installs davfs2 package
- Configures HiDrive WebDAV credentials
- Mounts https://webdav.hidrive.ionos.com/ to /mnt/hidrive
- Creates ComfyUI output directory: /mnt/hidrive/users/valknar/Pictures/AI/ComfyUI
- Creates symlink: /workspace/ComfyUI/output_hidrive

Usage:
  arty run setup/webdav

This allows ComfyUI outputs to be saved directly to HiDrive cloud storage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 18:32:51 +01:00
cabe2158be fix: remove invalid noise_mode parameter from KSamplerAdvanced
Removed "fixed" parameter that was causing broken pipe error.

KSamplerAdvanced correct parameters (9 values):
- add_noise: "enable"
- seed: 42
- steps: 25
- cfg: 7.5
- sampler_name: "euler"
- scheduler: "normal"
- start_at_step: 0
- end_at_step: 25
- return_with_leftover_noise: "enable"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 18:26:25 +01:00
9d91ec3236 feat: add SD 1.5 model and update AnimateDiff workflow
Changes:
- Added Stable Diffusion v1.5 model to comfyui_models.yaml
  - Required for AnimateDiff motion modules (mm_sd_v15_v2.ckpt)
  - Size: 4GB, VRAM: 8GB
- Updated AnimateDiff workflow to use SD 1.5 instead of SDXL
  - Changed checkpoint from sd_xl_base_1.0.safetensors to v1-5-pruned-emaonly.safetensors
  - Updated VRAM requirement from 18GB to 12GB
  - Updated model requirements in metadata

AnimateDiff v15 motion modules are not compatible with SDXL.
This resolves: "Motion module 'mm_sd_v15_v2.ckpt' is intended for SD1.5 models"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 18:18:41 +01:00
8d1508c564 fix: correct KSamplerAdvanced parameter order
KSamplerAdvanced correct order:
["add_noise", seed, "noise_mode", steps, cfg, sampler_name, scheduler, start_at_step, end_at_step, "return_with_leftover_noise"]

Fixed values:
- add_noise: "enable"
- seed: 42
- noise_mode: "fixed"
- steps: 25
- cfg: 7.5
- sampler_name: "euler"
- scheduler: "normal"
- start_at_step: 0
- end_at_step: 25
- return_with_leftover_noise: "enable"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 18:15:56 +01:00
2b66caa7e2 fix: correct KSamplerAdvanced parameters in AnimateDiff workflow
Fixed widget_values order for KSamplerAdvanced node:
- Changed sampler from dpmpp_2m to euler (valid sampler)
- Changed scheduler from karras to normal (valid scheduler)
- Fixed end_at_step from 10000 to 25 (matching steps count)

This resolves validation errors:
- scheduler '0' not in list
- cfg could not convert 'dpmpp_2m' to float
- sampler_name 'karras' not in list
- end_at_step 'disable' invalid literal for int

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 18:14:40 +01:00
c85d036e61 fix: restore correct model types after accidental changes
- FLUX models: checkpoints → diffusion_models
- CogVideoX: checkpoints → diffusion_models
- MusicGen (all): checkpoints → musicgen
- Removed custom_nodes notes from MusicGen (using musicgen directory)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 18:00:15 +01:00
99f4708475 fix: correct ComfyUI directory types to match actual structure
Changed type fields to use actual ComfyUI directory names:
- diffusion_models → checkpoints (for FLUX, CogVideoX)
- musicgen → checkpoints (with notes about custom_nodes placement)

All models now properly map to real ComfyUI/models/* subdirectories.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 17:54:55 +01:00
ba47d34362 fix: add multi-part file mapping for MusicGen Large
MusicGen Large is split into multiple files (pytorch_model-00001/00002-of-00002.bin)
Added all 3 files to the mapping (2 parts + index.json)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 17:39:35 +01:00
55efc6dddf fix: correct model type mappings based on ComfyUI folder_paths
- FLUX models: diffusers → diffusion_models
- SDXL models: diffusers → checkpoints
- SD 3.5: diffusers → checkpoints
- SVD video: diffusion_models → checkpoints
- MusicGen: audio_models → musicgen

This aligns with official ComfyUI directory structure.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 17:34:55 +01:00
0709dec1d4 feat: add explicit file mappings to comfyui_models.yaml
- Added 'files' array to all models specifying source and destination filenames
- Image models (FLUX, SDXL, SD 3.5): Use original checkpoint filenames
- Video models (CogVideoX, SVD): Use descriptive filenames
- Audio models (MusicGen): Prefix with model name for clarity
- Support models (CLIP, IP-Adapter, AnimateDiff): Keep original names
- This allows precise control over linked filenames in ComfyUI

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 17:20:18 +01:00
7ebda1ae44 fix: change audio models type from checkpoints to audio_models
Audio model files (MusicGen) should not be mixed with image generation
checkpoints. Changed type from 'checkpoints' to 'audio_models' to ensure
they are linked to the correct ComfyUI directory.
2025-11-22 17:00:33 +01:00
bd8d1d7783 fix: use correct supervisor group names for service control
Supervisor groups programs as 'ai-services:comfyui' and 'ai-services:orchestrator'
so commands need to use these full names instead of just the program names.
2025-11-22 16:56:23 +01:00
5361bef85c refactor: reorganize service management commands in arty.yml
- Replace shell script calls with direct supervisorctl commands
- Organize services hierarchically: services/{service}/action
- Add all service control commands: start, stop, restart, status, logs
- Support both individual service control and all services control
- Remove obsolete script-based service management

New command structure:
- All services: arty services/{start,stop,restart,status}
- ComfyUI: arty services/comfyui/{start,stop,restart,status,logs}
- Orchestrator: arty services/orchestrator/{start,stop,restart,status,logs}
2025-11-22 16:55:09 +01:00
79b861e687 fix: update AnimateDiff workflow to use correct checkpoint filename
Change CheckpointLoaderSimple to use 'sd_xl_base_1.0.safetensors' instead of
'diffusers/stable-diffusion-xl-base-1.0' to match the actual checkpoint file
linked in /root/ComfyUI/models/checkpoints/
2025-11-22 16:51:59 +01:00
24ace7dcda fix: add type field and missing models to comfyui_models.yaml
- Add 'type' field to all model entries (diffusers, clip_vision, checkpoints, etc.)
- Add animatediff_models category with guoyww/animatediff repo
- Add ipadapter_models category with h94/IP-Adapter repo
- Map models to correct ComfyUI subdirectories

This fixes model linking issues where models weren't appearing in ComfyUI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:56:59 +01:00
e84579a22f fix: add missing VHS_VideoCombine widget values
- Add pingpong and save_output boolean parameters
- Add video/h264-mp4 format options: pix_fmt, crf, save_metadata, trim_to_audio
- Fixes "Failed to restore node: Combine Frames" error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:50:06 +01:00
003caf668b fix: restructure AnimateDiff workflow for Evolved Gen2 nodes
- Replace deprecated AnimateDiffLoaderV1 with ADE_LoadAnimateDiffModel
- Add ADE_ApplyAnimateDiffModelSimple to create M_MODELS
- Add ADE_UseEvolvedSampling to inject motion into base model
- Replace AnimateDiffSampler with KSamplerAdvanced
- Add complete node links for all connections
- Update node IDs and execution order

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:47:52 +01:00
360fd52c59 fix: update AnimateDiffSampler to KSamplerAdvanced
- Replace ADE_AnimateDiffSampler with KSamplerAdvanced
- Adjust widget values for KSamplerAdvanced compatibility
- Add proper node name mappings in fix_workflows.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:42:29 +01:00
45f71e646d fix: update workflow schema validation and node names
- Add missing last_link_id and links fields to all workflows
- Update node name mappings:
  - AudioSave → SaveAudio (MusicGen workflows)
  - AnimateDiffSampler → ADE_AnimateDiffSampler
  - SeedGenerator → ImpactInt
  - BatchKSampler → KSampler
  - ImageBatchToList → GetImageSize
- Fix schema validation errors across all 20 workflows

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:38:38 +01:00
2213ed3c85 fix: complete ComfyUI workflow schema validation
Fix all 20 production workflows to comply with ComfyUI schema requirements:
- Add missing 'flags', 'order', 'mode', 'properties', 'size' fields to all nodes
- Update deprecated node names:
  - AnimateDiffLoader → AnimateDiffLoaderV1
  - VHSVideoCombine → VHS_VideoCombine
  - IPAdapterApply → IPAdapter
  - IPAdapterApplyFace → IPAdapterFaceID
- Remove deprecated nodes: PreviewVideo, SaveVideo
- Add fix_workflows.py script for future maintenance

Changes:
- 16 workflows updated with complete schema
- 4 workflows (FLUX, SD3.5) were already valid
- All workflows now pass zod schema validation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:30:08 +01:00
19d82108b0 fix: pin diffusers version to >=0.31.0 for CogVideoXWrapper compatibility
ComfyUI-CogVideoXWrapper requires diffusers>=0.31.0 to function properly. Pin the version requirement to ensure the correct version is installed during setup.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:07:27 +01:00
99b743c412 feat: add ComfyUI_UltimateSDUpscale to custom nodes
Add ComfyUI_UltimateSDUpscale repository to support the ultimate-sd-upscale-production-v1 workflow. This provides high-quality image upscaling capabilities.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 14:52:16 +01:00
d719bcdfcf feat: link workflows to ComfyUI user directory with category prefixes
Update workflows/link-comfyui to link workflow files to the correct ComfyUI user directory (/workspace/ComfyUI/user/default/workflows/) instead of the non-standard /workspace/ComfyUI/workflows/ location.

Add category prefixes to maintain organization in ComfyUI's flat workflow browser:
- t2i_: Text-to-Image workflows
- i2i_: Image-to-Image workflows
- i2v_: Image-to-Video workflows
- t2m_: Text-to-Music workflows
- upscale_: Upscaling workflows
- adv_: Advanced workflows

Changes:
- Target correct ComfyUI user workflows directory
- Add category prefixes to all workflow symlinks
- Clean up old symlinks from previous location
- Workflows will now appear in ComfyUI's workflow browser sorted by category

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 14:37:42 +01:00
6daca7329a feat: flatten ComfyUI workflow structure for web UI visibility
Update workflows/link-comfyui script to link individual JSON files directly to /workspace/ComfyUI/workflows/ instead of subdirectories. ComfyUI web UI requires workflows to be in the root workflows directory to display them.

Changes:
- Remove old directory symlinks
- Link all 20 workflow JSON files directly to workflows root
- Preserve original descriptive filenames (e.g., flux-dev-t2i-production-v1.json)
- Add workflow count display
- Keep README and WORKFLOW_STANDARDS documentation links

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 14:13:30 +01:00