stable-diffusion-videos
Routes Stable Diffusion video, image, audio-synced interpolation, optional upsampling, and Gradio UI workflows for the stable_diffusion_videos package.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- stable-diffusion-videos
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes Stable Diffusion video, image, audio-synced interpolation, optional upsampling, and Gradio UI workflows for the stable_diffusion_videos package.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md4.5 KB
- 参考文档references/repo-provenance.md1.2 KB
- 参考文档references/repo-routing-metadata.json522 B
- 参考文档references/troubleshooting.md3.1 KB
- 脚本scripts/check_env.py5.6 KB
03 SKILL.md 正文
stable-diffusion-videos
Use this repo skill for the stable_diffusion_videos package when the task is about
prompt-to-video walks, music-synced interpolation, still-image generation, optional
Real-ESRGAN upsampling, or the bundled Gradio demo.
Start here
- Read
references/api-reference.mdwhen you need exact public signatures, defaults, or output shapes. - Read
references/troubleshooting.mdwhen imports fail, video encoding breaks, or dependency versions drift. - Read
references/repo-provenance.mdbefore deciding whether this skill still matches the current repo snapshot or before refreshing it. - Read
references/repo-routing-metadata.jsonif you are updating router import metadata or need the scenario selection signals.
Quick install and smoke check
Use the published package when you only need the runtime API:
python -m pip install stable_diffusion_videos
For the video workflows, make sure these runtime basics are present:
torch+torchvisionwith a matching CUDA-capable build when you want to run the GPU video generation path.ffmpegwith a workinglibx264encoder for MP4 creation.- Optional:
avforwrite_video,librosafor audio-timed interpolation, andrealesrganfor upsampling.
A minimal import check is:
python -I -c "from stable_diffusion_videos import StableDiffusionWalkPipeline, generate_images, Interface"
For a safer local smoke check, run the bundled helper:
python scripts/check_env.py --help
Route map
generation
Use this route for the core diffusion workflows:
StableDiffusionWalkPipeline.walk(...)generate_images(...)- audio-timed interpolation with
get_timesteps_arr(...) - video encoding with
make_video_pyav(...) - optional
RealESRGANModelupsampling - the Torch walk pipeline and its helper scripts
Common triggers:
- "make a Stable Diffusion video"
- "generate a music video"
- "walk between prompts"
- "upsample the generated frames"
- "convert audio energy into interpolation weights"
- "preview the walk inputs before running"
Read sub-skills/generation/SKILL.md for the workflow router, then use its
bundled references and scripts.
ui
Use this route for the Gradio demo and the example launchers:
Interface- the packaged UI launcher pattern
- the image/video tabs and their launch parameters
- the experimental music-video UI only as reference material
Common triggers:
- "launch the demo"
- "start the Gradio interface"
- "open the image/video tabs"
- "adapt the example launcher"
Read sub-skills/ui/SKILL.md for launch patterns, input mappings, and UI
troubleshooting.
Optional path
If the request is specifically about the experimental Flax/JAX/TPU notebook or
generate_images_flax(...), read sub-skills/generation/references/flax-and-tpu.md.
That path is optional and is not part of the default Torch video workflow.
Where the reusable helpers live
scripts/check_env.pychecks imports, GPU readiness, and tiny video/audio smokes.sub-skills/generation/scripts/make_video_template.pyadapts the music-video recipe into a safer command-line helper.sub-skills/generation/scripts/preview_audio_timesteps.pypreviews audio-driven interpolation weights.sub-skills/ui/scripts/launch_interface.pyadapts the Gradio launcher into a configurable helper.
Operational reminders
- Video generation is GPU-oriented; CPU importability is not enough for the main walk workflow.
heightandwidthmust be multiples of 8.seedsmust match prompts, andnum_interpolation_stepsmust match the number of prompt gaps.- The skill is self-contained. Do not point future agents back to the original checkout for runtime instructions.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).