원클릭으로
stable-diffusion
Run Stable Diffusion locally with diffusers — text-to-image, img2img, inpainting, ControlNet, and SDXL.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run Stable Diffusion locally with diffusers — text-to-image, img2img, inpainting, ControlNet, and SDXL.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window.
Generate insights about your Claude Code usage — what topics you work on most, common patterns, productivity trends.
Route Claude Code work by complexity, risk, and tool needs. Use when deciding how much reasoning depth a task needs, whether to read project memory first, whether the task should be decomposed, and whether the work is lightweight, standard, or investigation-heavy.
Query Polymarket prediction markets for probability data and research insights on real-world events.
Search and retrieve academic papers from arXiv using their free REST API. No API key needed.
Query Base (Ethereum L2) blockchain data — wallet balances, token info, transactions, gas analysis, contract inspection. No API key required.
| name | stable-diffusion |
| description | Run Stable Diffusion locally with diffusers — text-to-image, img2img, inpainting, ControlNet, and SDXL. |
| version | 1.0.0 |
| author | hermes-CCC (ported from Hermes Agent by NousResearch) |
| license | MIT |
| metadata | {"hermes":{"tags":["MLOps","Stable-Diffusion","Image-Generation","Diffusers","Text-to-Image"],"related_skills":[]}} |
diffusers.pip install diffusers transformers accelerate torch
diffusers for pipeline abstractionstransformers for text encoders and related model componentsaccelerate for efficient device loading and memory movementtorch for runtime executionStableDiffusionPipeline.import torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16,
)
pipe = pipe.to("cuda")
image = pipe(
prompt="a cinematic photo of a mountain observatory at sunrise",
negative_prompt="blurry, low quality, distorted",
num_inference_steps=30,
guidance_scale=7.5,
).images[0]
image.save("output.png")
StableDiffusionXLPipeline.import torch
from diffusers import StableDiffusionXLPipeline
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
)
pipe = pipe.to("cuda")
image = pipe(
prompt="a highly detailed editorial photo of a futuristic library interior",
negative_prompt="low resolution, deformed, extra limbs",
num_inference_steps=35,
guidance_scale=6.5,
).images[0]
image.save("sdxl-output.png")
prompt: the main text instructionnegative_prompt: what to suppressnum_inference_steps: denoising step countguidance_scale: classifier-free guidance strengthseed: random seed for reproducibilityimport torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16,
).to("cuda")
generator = torch.Generator(device="cuda").manual_seed(42)
image = pipe(
prompt="a clean product photo of a ceramic mug on a wood table",
negative_prompt="blurry, noisy, warped",
num_inference_steps=28,
guidance_scale=7.0,
generator=generator,
).images[0]
image.save("seeded-output.png")
image.save("output.png")
StableDiffusionImg2ImgPipeline to transform an existing image while preserving composition.import torch
from diffusers import StableDiffusionImg2ImgPipeline
from PIL import Image
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16,
).to("cuda")
init_image = Image.open("input.png").convert("RGB").resize((768, 768))
image = pipe(
prompt="turn this concept sketch into a polished sci-fi matte painting",
negative_prompt="blurry, low contrast, artifacts",
image=init_image,
strength=0.65,
num_inference_steps=30,
guidance_scale=7.5,
).images[0]
image.save("img2img-output.png")
strength preserves more of the input image.strength pushes the result further away from the source.StableDiffusionInpaintPipeline to replace or repair masked regions.import torch
from diffusers import StableDiffusionInpaintPipeline
from PIL import Image
pipe = StableDiffusionInpaintPipeline.from_pretrained(
"runwayml/stable-diffusion-inpainting",
torch_dtype=torch.float16,
).to("cuda")
image = Image.open("scene.png").convert("RGB").resize((512, 512))
mask = Image.open("mask.png").convert("RGB").resize((512, 512))
result = pipe(
prompt="replace the missing area with a wooden chair",
negative_prompt="blurry, malformed, duplicate objects",
image=image,
mask_image=mask,
num_inference_steps=30,
guidance_scale=7.5,
).images[0]
result.save("inpaint-output.png")
pipe.enable_model_cpu_offload()
pipe.enable_attention_slicing()
pipe.enable_model_cpu_offload() is often helpful on constrained GPUs.pipe.enable_attention_slicing() can reduce peak memory at some performance cost.pipe.load_lora_weights("./lora.safetensors")
Common negative prompts include:
blurry
low quality
worst quality
deformed
extra limbs
bad anatomy
artifact
text
watermark
Use concise negative prompts first.
Overly long negative prompts can produce unstable or muddled outputs.
Use SDXL when:
prompt fidelity matters
you need stronger detail and composition
you have enough VRAM
Use SD 1.5 when:
you need a lighter model
you rely on mature community tooling
you need broad LoRA and ControlNet ecosystem support
diffusers is strong for code-driven workflows.float16.Out-of-memory:
enable CPU offload
enable attention slicing
reduce image size
use SD 1.5 instead of SDXL
Muddy or low-quality images:
increase num_inference_steps
refine the prompt
simplify the negative prompt
verify you are using the intended model
Unreliable edits in img2img:
lower or raise strength depending on whether the source is being ignored or over-preserved
use clearer prompts
start from a cleaner input image
Inpainting artifacts:
improve the mask
widen the masked area slightly
use a prompt that matches the surrounding scene
pip install diffusers transformers accelerate torchStableDiffusionXLPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")StableDiffusionPipelineimage.save("output.png")StableDiffusionImg2ImgPipelineStableDiffusionInpaintPipelinepipe.enable_model_cpu_offload() and pipe.enable_attention_slicing()pipe.load_lora_weights("./lora.safetensors")