Commit e28f1ab
authored
live/pipelines: Move prepare models logic to pipeline (#849)
* .github: Rename docker build actions for consistency
* Add scope pipeline scaffold for live-video-to-video
This commit adds the initial scaffold for the Scope pipeline integration,
following the same patterns as StreamDiffusion (not ComfyUI). The scaffold
includes:
Pipeline Implementation:
- Created runner/app/live/pipelines/scope/ with __init__.py, pipeline.py,
and params.py
- ScopeParams extends BaseParams for future configuration
- Scope pipeline class based on Noop implementation
- Updated loader.py to register scope pipeline and params
Docker & CI:
- Added Dockerfile.live-base-scope that installs scope via uv in the
comfystream conda environment and builds the frontend
- Created .github/workflows/ai-runner-docker-scope.yaml to build and push
scope Docker images (live-base-scope and live-app-scope)
Documentation:
- Updated docs/live-ai-local-dev.md examples to use scope instead of
comfyui
The implementation follows StreamDiffusion patterns and does not include
any ComfyUI-style special cases. Scope is treated as a standard pipeline
without parameter wrapping or resolution restrictions.
* docker: Fix scope package installation
* Fix --active flag to uv
Also adda a check on pipe startup
* Add scope model prepare tooling
* Fix scope prepare script path handling
* Add diffusers deps to live AI requirements
* Pin uv to latest version 0.9.9
* Fix scope pipeline interface import path
* Add /workspace/scope to PYTHONPATH for lib module imports
* Remove sys.path manipulation from prepare_models, rely on PYTHONPATH
* feat: unify pipeline model preparation
Add a shared prepare_models entrypoint that loads pipelines via loader.load_pipeline and lets each pipeline expose prepare_models(). StreamDiffusion now owns a full preparation module that downloads dependencies, compiles Depth/Pose/RAFT engines, and iterates over all model/controlnet/IP-Adapter combinations to build TensorRT engines sequentially. Scope implements the hook with its smoke test, ComfyUI/Noop have no-ops, and the download scripts call the new tool so the old bespoke streamdiffusion/scope helpers are removed.
* Human simplify dl_checkpoints
* Human plane proof read (WIP)
* [ai] Stop passing model_dir around
* Rename cwd_models to just StreamDiffusion--models
* Review rest of prepare.py
* Fix ipa_type1 parent 2d1aeb6 commit e28f1ab
File tree
13 files changed
+476
-502
lines changed- .github/workflows
- runner
- app
- live/pipelines
- comfyui
- scope
- streamdiffusion
- tools
- streamdiffusion
- docker
13 files changed
+476
-502
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
261 | 271 | | |
262 | 272 | | |
263 | 273 | | |
| |||
386 | 396 | | |
387 | 397 | | |
388 | 398 | | |
389 | | - | |
| 399 | + | |
390 | 400 | | |
391 | 401 | | |
392 | 402 | | |
| |||
0 commit comments