스테이블 디퓨전에서 프롬프트(prompt)는 원하는 이미지를 생성하는 핵심 요소입니다. 좋은 프롬프트를 작성하면 더 정밀하고 만족스러운 이미지를 얻을 수 있습니다.


 효과적인 프롬프트 작성법

  1. 핵심 주제 명확히 하기
    • 이미지의 중심이 되는 키워드를 먼저 작성
    • (예: a cyberpunk city, a beautiful anime girl, a futuristic warrior)
  2. 스타일과 분위기 추가
    • 원하는 스타일이나 분위기를 명확히 기술
    • (예: realistic, cinematic lighting, hyper-detailed, fantasy style, vibrant colors)
  3. 카메라 앵글 및 구성 추가
    • (예: close-up shot, wide-angle, portrait, bird’s-eye view, dynamic composition)
  4. 조명 및 색감 조절
    • (예: soft lighting, golden hour, neon glow, moody atmosphere, high contrast)
  5. 아티스트 이름 및 참고 스타일 활용
    • 특정 아티스트 스타일을 참고하여 결과 개선 가능
    • (예: art by Greg Rutkowski, Studio Ghibli style, Pixar style)
  6. 세부 요소 추가
    • 작은 디테일까지 추가해 세밀한 이미지 조정
    • (예: intricate patterns, detailed background, fine textures, ultra HD)
  7. 네거티브 프롬프트 활용 (-Negative Prompt-)
    • 원하지 않는 요소를 제외
    • (예: blurry, low-quality, extra fingers, watermark, bad anatomy, distorted)

 

예제 프롬프트

 

1. 현실적인 인물 (Realistic Portrait)

a highly detailed portrait of a beautiful woman, photorealistic, UHD, cinematic lighting, high contrast, soft shadows, natural skin texture, by Greg Rutkowski

 

2. 사이버펑크 도시 (Cyberpunk City)

a futuristic cyberpunk city at night, neon lights, rain-soaked streets, ultra-detailed, cinematic composition, Blade Runner style
 

 

3. 애니메이션 스타일 캐릭터 (Anime Girl)

a cute anime girl with long silver hair, red eyes, wearing a futuristic suit, highly detailed, vibrant colors, cinematic lighting, art by Makoto Shinkai, Studio Ghibli
 
 

4. 판타지 풍경 (Fantasy Landscape)

a majestic floating island with waterfalls, glowing plants, magical atmosphere, ultra-detailed, artstation trending, fantasy style, 4K

 

5. 네거티브 프롬프트 예제

blurry, low-quality, watermark, extra fingers, distorted face, low resolution, bad anatomy, artifacts
 

 

  • 핵심 주제 → 스타일 & 조명 → 세부 요소 추가 → 네거티브 프롬프트 활용 순으로 작성
  • 명확하고 구체적인 프롬프트일수록 원하는 이미지를 쉽게 얻을 수 있음
  • 여러 번 시도하며 프롬프트를 조정하는 것이 중요

 

반응형
LIST

2025.03.14 - [스테이블 디퓨전] - ControlNet을 알아보자 >>> ControlNet은 무엇인가?

 

ControlNet을 알아보자 >>> ControlNet은 무엇인가?

스테이블 디퓨전에서 ControlNet은 텍스트-이미지 변환 모델에 추가적인 조건을 부여하여 더 정교하고 제어된 이미지 생성을 가능하게 하는 신경망 구조입니다. 이 모델은 기존의 생성 모델에 "잠

suncommq.tistory.com

 

프롬프트:

"Taekwon V, giant robot, heroic pose, detailed mechanical design, vibrant colors, anime style, standing in a futuristic cityscape, glowing eyes, dynamic lighting, cinematic atmosphere"

 

네거티브:

"low quality, blurry, distorted, unrealistic proportions, watermark"

프롬프트로 생성된 원본 이미지
프리 프로세서 canny 적용
canny로 추출해서 img2img로 생성한 이미지

 

프롬프트:

"A young boy riding a bicycle through a sunny park, wearing a red helmet and a blue backpack, surrounded by green trees and flowers, cheerful and dynamic pose, realistic lighting, detailed and vibrant colors, cinematic composition"

 

네거티브:

"blurry, low quality, distorted proportions, overexposed, abstract"

 

프롬프트로 생성한 자전거 타는 소년
depth 적용
depth로 추출해서 생성한 이미지

두번째 자전거 타는 소년은 좀 무섭다...

 

 

프롬프트:

"A cute white rabbit sitting on green grass, surrounded by colorful flowers, soft sunlight shining through the trees, realistic fur texture, highly detailed, warm and vibrant colors, photorealistic style"

 

네거티브:

"blurry, low quality, overly dark, abstract, unrealistic proportions"

아증맞은 토끼
scibble 적용한 토끼사진

 

scibble 적용한 이미지로 img2img로 재생성 해보자.

어?!

털만 그려놨네;;;; 그래도 꽃은 칼라로 해놨네요.....

 

프롬프트로 생성한 여자 원본사진
openpose로 추출

 

openpose를 적용하여 새로운 이미지 생성

반응형
LIST

프롬프트 예시 1: 따뜻하고 자연스러운 이미지

a cute golden retriever puppy sitting on a grassy field under soft sunlight, detailed fur texture, bright and vibrant colors, shallow depth of field, ultra high-resolution, cinematic composition, photorealistic, adorable expression

따뜻하고 자연스러운 이미지
따뜻하고 자연스러운 이미지

 

프롬프트 예시 2: 실내에서 포근한 모습

a small fluffy dog sleeping peacefully on a cozy blanket in a warmly lit room, detailed fur, soft textures, natural lighting, ultra-realistic, cozy and warm atmosphere, subtle details of the surroundings

실내에서 포근한 모습

 

 

 

프롬프트 예시 3: 초상화 스타일

a portrait of a majestic husky with blue eyes, facing the camera, ultra-detailed fur with realistic lighting, vibrant contrast, dramatic background bokeh, studio photography style, symmetrical composition

초상화 스타일

 

네거티브 프롬프트

low quality, ((blurry)), distorted features, ((multiple dogs)), overlapping animals, extra limbs, unrealistic anatomy, duplicate subjects, extra heads, poorly drawn, asymmetry, unnatural colors, artifacting, grainy texture, oversaturation, poorly lit

 

 

:

  1. Resolution: 512x512에서 시작하고, 업스케일 기능으로 1024x1024 이상의 해상도로 업그레이드하세요.
  2. Sampler: Euler_a 또는 DPM++과 같은 샘플러를 사용해 균형 잡힌 결과를 얻으세요.
  3. Steps: 40~50 범위로 설정해 디테일을 살립니다.
  4. CFG Scale: 7~10 범위로 조정하여 결과를 제어합니다.
반응형
LIST

+ Recent posts