executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
genai-visionIntegrating Stable Diffusion for vision generation and Whisper for audio/multimodal tasks.
Independent GitHub snapshot · Automated classification · Original documentation governs
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
graph TD
A[User Audio] --> B(Whisper)
B -->|Text Prompt| C[Stable Diffusion]
C --> D[Generated Image]
import torch
from diffusers import StableDiffusionPipeline
def generate_image(prompt: str, output_path: str):
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16
).to("cuda")
pipe.enable_xformers_memory_efficient_attention()
image = pipe(prompt, num_inference_steps=30).images[0]
image.save(output_path)