Community이미지github.com

davila7/stable-diffusion-image-generation

HuggingFace Diffusers를 통해 Stable Diffusion 모델을 사용한 최첨단 텍스트-이미지 생성 기능입니다. 텍스트 프롬프트로 이미지 생성, 이미지-이미지 변환, 인페인팅, 맞춤형 확산 파이프라인 구축 시 사용하세요.

stable-diffusion-image-generation란 무엇인가요?

이 스킬은 HuggingFace Diffusers 라이브러리를 기반으로 Stable Diffusion 모델을 활용하여 텍스트 프롬프트에서 고품질 이미지를 생성하는 전문 기술입니다. 개발자는 간단한 자연어 설명만으로 사실적이거나 창의적인 이미지를 생성할 수 있으며, 이미지-이미지 번역, 인페인팅, 아웃페인팅 등 다양한 고급 작업을 지원합니다. 또한 맞춤형 확산 파이프라인 구축이 가능해 특정 도메인이나 스타일에 최적화된 이미지 생성을 손쉽게 구현할 수 있습니다. Cursor, Claude Code, Codex 등 주요 AI 코딩 에이전트 플랫폼에서 실행되며, GPU 가속 환경을 활용해 빠르고 효율적인 이미지 생성을 제공합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/davila7/claude-code-templates/tree/main/skills/stable-diffusion-image-generation

Installed? Explore more 이미지 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

stable-diffusion-image-generation은(는) 무엇을 하나요?

HuggingFace Diffusers를 통해 Stable Diffusion 모델을 사용한 최첨단 텍스트-이미지 생성 기능입니다. 텍스트 프롬프트로 이미지 생성, 이미지-이미지 변환, 인페인팅, 맞춤형 확산 파이프라인 구축 시 사용하세요.

주요 기능

  • 텍스트-이미지 생성: 자연어 설명에서 고품질 이미지 생성
  • 이미지-이미지 변환: 기존 이미지를 새로운 프롬프트에 맞게 변환
  • 인페인팅: 이미지의 특정 영역을 지능적으로 채우거나 교체
  • 아웃페인팅: 이미지 경계를 넘어 콘텐츠 확장
  • 맞춤형 파이프라인: 특정 요구사항에 맞춘 확산 파이프라인 구축

지원 플랫폼

  • Claude Code
  • Cursor
  • Codex
  • 기타 AI 코딩 에이전트

사용법

텍스트-이미지 생성

from diffusers import StableDiffusionPipeline
import torch

pipeline = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
pipeline = pipeline.to("cuda")

prompt = "A fantasy landscape with mountains and a glowing moon"
image = pipeline(prompt).images[0]
image.save("fantasy_landscape.png")

이미지-이미지 변환

from diffusers import StableDiffusionImg2ImgPipeline

pipe = StableDiffusionImg2ImgPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
pipe = pipe.to("cuda")

init_image = Image.open("input.jpg")
prompt = "A beautiful garden with flowers"
image = pipe(prompt=prompt, image=init_image, strength=0.75).images[0]

인페인팅

from diffusers import StableDiffusionInpaintPipeline

pipe = StableDiffusionInpaintPipeline.from_pretrained("runwayml/stable-diffusion-inpainting")
pipe = pipe.to("cuda")

image = Image.open("input.jpg")
mask = Image.open("mask.png")
prompt = "A cute cat sitting on a chair"
result = pipe(prompt=prompt, image=image, mask_image=mask).images[0]

환경 변수

  • HF_TOKEN: HuggingFace 인증 토큰 (선택사항, gated 모델 사용 시 필요)
  • DEVICE: 사용할 장치 (cuda 또는 cpu, 기본값: cuda)

참고 사항

  • GPU가 권장됩니다 (특히 CUDA 지원 GPU)
  • 모델은 자동으로 HuggingFace Hub에서 다운로드됩니다
  • 생성 시간은 프롬프트 복잡성과 이미지 해상도에 따라 다릅니다

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

davila7/citation-management

Comprehensive citation management for academic research. Search Google Scholar and PubMed for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

davila7/claude-code-templates

Balance visual design with ATS compatibility for creative roles. Use when the user is in design, art, writing, marketing creative, or any visual/creative field and needs a resume that looks distinctive but still parses.

davila7/claude-code-templates

Optimize resumes for software engineering, product management, and technical roles. Use when the user mentions software engineer, developer, PM, data scientist, ML, DevOps, or other technical role resumes.

davila7/claude-code-templates

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities. Use when: portfolio, personal website, showcase work, developer portfolio, designer portfolio.

davila7/claude-code-templates

Create premium, Awwwards-quality website designs as React (.jsx) components that look like they were built by a top-tier agency charging $50k+ per project. Use this skill whenever the user asks for a website, landing page, portfolio, or web component that should look expensive, premium, luxury, editorial, high-end, or agency-quality. Also trigger when the user mentions Awwwards, FWA, award-winning design, or references brands like Apple, Aesop, Bottega Veneta, Stripe, or any luxury/fashion/design-forward brand. Trigger when the user says things like "make it look professional", "make it look expensive", "I want it to look really good", "high quality design", "not generic", or expresses dissatisfaction with typical AI-generated website aesthetics. Do NOT trigger for dashboards, admin panels, internal tools, or functional UI where aesthetics are secondary to utility — the standard frontend-design skill handles those.

davila7/claude-code-templates

Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.

davila7/claude-code-templates

When the user wants to optimize, improve, or increase conversions on any marketing page — including homepage, landing pages, pricing pages, feature pages, or blog posts. Also use when the user says "CRO," "conversion rate optimization," "this page isn't converting," "improve conversions," or "why isn't this page working." For signup/registration flows, see signup-flow-cro. For post-signup activation, see onboarding-cro. For forms outside of signup, see form-cro. For popups/modals, see popup-cro.

davila7/excel-analysis

Analyze Excel spreadsheets, create pivot tables, generate charts, and perform data analysis. Use when analyzing Excel files, spreadsheets, tabular data, or .xlsx files.

davila7/exploratory-data-analysis

Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats. This skill should be used when analyzing any scientific data file to understand its structure, content, quality, and characteristics. Automatically detects file type and generates detailed markdown reports with format-specific analysis, quality metrics, and downstream analysis recommendations. Covers chemistry, bioinformatics, microscopy, spectroscopy, proteomics, metabolomics, and general scientific data formats.

davila7/generate-image

Generate or edit images using AI models (FLUX, Gemini). Use for general-purpose image generation including photos, illustrations, artwork, visual assets, concept art, and any image that isn't a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.

davila7/jira

Use when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.

davila7/literature-review

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature searches across biomedical, scientific, and technical domains. Creates professionally formatted markdown documents and PDFs with verified citations in multiple citation styles (APA, Nature, Vancouver, etc.).

davila7/marketing-strategy-pmm

Product marketing, positioning, GTM strategy, and competitive intelligence. Includes ICP definition, April Dunford positioning methodology, launch playbooks, competitive battlecards, and international market entry guides. Use when developing positioning, planning product launches, creating messaging, analyzing competitors, entering new markets, enabling sales, or when user mentions product marketing, positioning, GTM, go-to-market, competitive analysis, market entry, or sales enablement.

davila7/market-research-reports

Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter's Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.

davila7/markitdown

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

davila7/mermaid-diagram-specialist

Mermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations

davila7/mobile-design

Mobile-first design thinking and decision-making for iOS and Android apps. Touch interaction, performance patterns, platform conventions. Teaches principles, not fixed values. Use when building React Native, Flutter, or native mobile apps.

davila7/prompt-engineer

Expert in designing effective prompts for LLM-powered applications. Masters prompt structure, context management, output formatting, and prompt evaluation. Use when: prompt engineering, system prompt, few-shot, chain of thought, prompt design.

davila7/remotion

Best practices and comprehensive guide for Remotion - programmatic video creation in React with animations, compositions, and media handling

davila7/scientific-slides

Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.

관련 스킬