AGENT SKILL

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

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 reference
  • get_timesteps_arr(...)
  • make_video_pyav(...)
  • RealESRGANModel loading 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.md for end-to-end command patterns and output layout.
  • references/troubleshooting.md for generation-specific failures and recovery.
  • references/flax-and-tpu.md if you need the optional JAX/Flax/TPU path.
  • ../../references/api-reference.md for exact public signatures.
  • ../../references/repo-provenance.md for 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.
  • height and width must be multiples of 8.
  • ffmpeg with libx264 must be available for MP4 encoding.
  • librosa is needed for audio-timed interpolation.
  • realesrgan is 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

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