generation
Routes Stable Diffusion walk, music-video, still-image, audio-timing, and upsampling workflows for stable_diffusion_videos.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- generation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes Stable Diffusion walk, music-video, still-image, audio-timing, and upsampling workflows for stable_diffusion_videos.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/flax-and-tpu.md1.6 KB
- 参考文档references/troubleshooting.md2.9 KB
- 参考文档references/workflows.md3.3 KB
- 脚本scripts/make_video_template.py6.3 KB
- 脚本scripts/preview_audio_timesteps.py2.5 KB
03 SKILL.md 正文
generation
Use this sub-skill when the task is to create images or videos with the
Diffusers pipelines exposed by stable_diffusion_videos.
What this route owns
StableDiffusionWalkPipeline.walk(...)StableDiffusionWalkPipeline.make_clip_frames(...)generate_images(...)generate_images_flax(...)as an optional backend referenceget_timesteps_arr(...)make_video_pyav(...)RealESRGANModelloading and folder upsampling- prompt / seed validation, frame layouts, and audio-driven interpolation
What this route excludes
- Gradio UI launchers and tab wiring, which belong to
ui - repository maintenance and packaging tasks
- heavyweight training or checkpoint creation
Read these bundled files
references/workflows.mdfor end-to-end command patterns and output layout.references/troubleshooting.mdfor generation-specific failures and recovery.references/flax-and-tpu.mdif you need the optional JAX/Flax/TPU path.../../references/api-reference.mdfor exact public signatures.../../references/repo-provenance.mdfor source snapshot and evidence paths.
Common tasks
Make a prompt walk
Start with references/workflows.md or run the template script with --dry-run
first. Then switch to --run when you are ready to download the model and use
CUDA.
Make a music video
Use the audio offsets recipe, compute interpolation steps from the offsets and FPS, and confirm the frame count before generating.
Generate still images
Use generate_images(...) when you want prompt-conditioned image batches
instead of a walk.
Preview audio timing
Use scripts/preview_audio_timesteps.py to inspect the interpolation weights for
a local audio file before running a long generation.
Upsample frames or folders
Use RealESRGANModel only when you really need the 4x upsampling path. It is
optional, heavier, and can be slow on CPU.
Backends and prerequisites
- The main walk workflow is GPU-oriented.
heightandwidthmust be multiples of 8.ffmpegwithlibx264must be available for MP4 encoding.librosais needed for audio-timed interpolation.realesrganis only needed for the upsampling path.
Workflow boundaries
If you are unsure whether a request is a generation or UI task, choose this
sub-skill when the user names walk, generate_images, audio_filepath,
get_timesteps_arr, make_video_pyav, RealESRGANModel, or upsample.
Choose ui when the request is about the Gradio demo or launch parameters.
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).