Skip to content

Replace local LTX GPU pipeline with ComfyUI workflow stub#49

Closed
nick-knack-knight wants to merge 1 commit intoLightricks:mainfrom
nick-knack-knight:claude/comfyui-workflow-integration-Nm19K
Closed

Replace local LTX GPU pipeline with ComfyUI workflow stub#49
nick-knack-knight wants to merge 1 commit intoLightricks:mainfrom
nick-knack-knight:claude/comfyui-workflow-integration-Nm19K

Conversation

@nick-knack-knight
Copy link
Copy Markdown

The T2V/I2V generation path no longer calls the local DistilledPipeline. Instead it calls call_comfyui_workflow() in the new service module backend/services/comfyui_pipeline/comfyui_video_pipeline.py.

Changes:

  • Add backend/services/comfyui_pipeline/comfyui_video_pipeline.py — the single file to fill in with ComfyUI API / tunnel code. Contains a ComfyUIGenerationParams dataclass (all generation params) and the call_comfyui_workflow() stub with a detailed TODO block.
  • Add VideoGenerationHandler._generate_comfyui() — replaces the load_gpu_pipeline + generate_video block; packs params, calls the stub, writes returned bytes to the output path, and integrates with the existing generation state machine (progress updates, cancellation, error handling).
  • VideoGenerationHandler.generate() now routes the main T2V/I2V path to _generate_comfyui(). The LTX API forced path and A2V path are unchanged.

https://claude.ai/code/session_01TZHGm5QYVSSZdx5nCKp7fj

The T2V/I2V generation path no longer calls the local DistilledPipeline.
Instead it calls `call_comfyui_workflow()` in the new service module
`backend/services/comfyui_pipeline/comfyui_video_pipeline.py`.

Changes:
- Add `backend/services/comfyui_pipeline/comfyui_video_pipeline.py` — the
  single file to fill in with ComfyUI API / tunnel code.  Contains a
  `ComfyUIGenerationParams` dataclass (all generation params) and the
  `call_comfyui_workflow()` stub with a detailed TODO block.
- Add `VideoGenerationHandler._generate_comfyui()` — replaces the
  `load_gpu_pipeline` + `generate_video` block; packs params, calls the
  stub, writes returned bytes to the output path, and integrates with the
  existing generation state machine (progress updates, cancellation, error
  handling).
- `VideoGenerationHandler.generate()` now routes the main T2V/I2V path to
  `_generate_comfyui()`.  The LTX API forced path and A2V path are
  unchanged.

https://claude.ai/code/session_01TZHGm5QYVSSZdx5nCKp7fj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants