AGENT SKILL

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

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.md when you need exact public signatures, defaults, or output shapes.
  • Read references/troubleshooting.md when imports fail, video encoding breaks, or dependency versions drift.
  • Read references/repo-provenance.md before deciding whether this skill still matches the current repo snapshot or before refreshing it.
  • Read references/repo-routing-metadata.json if 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 + torchvision with a matching CUDA-capable build when you want to run the GPU video generation path.
  • ffmpeg with a working libx264 encoder for MP4 creation.
  • Optional: av for write_video, librosa for audio-timed interpolation, and realesrgan for 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 RealESRGANModel upsampling
  • 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.py checks imports, GPU readiness, and tiny video/audio smokes.
  • sub-skills/generation/scripts/make_video_template.py adapts the music-video recipe into a safer command-line helper.
  • sub-skills/generation/scripts/preview_audio_timesteps.py previews audio-driven interpolation weights.
  • sub-skills/ui/scripts/launch_interface.py adapts the Gradio launcher into a configurable helper.

Operational reminders

  • Video generation is GPU-oriented; CPU importability is not enough for the main walk workflow.
  • height and width must be multiples of 8.
  • seeds must match prompts, and num_interpolation_steps must 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351