docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거

Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를
Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류.

- 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로
  자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거,
  동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거.
- 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming,
  Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business,
  Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로,
  나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는
  title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백).
  원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지.
- 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서.
- 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는
  지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지.
- Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경.
- 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
This commit is contained in:
Antigravity Agent
2026-07-05 00:33:48 +09:00
parent 1cfd3bbb56
commit 9148c358d0
6455 changed files with 1 additions and 86875 deletions
@@ -0,0 +1,177 @@
---
id: wiki-2026-0508-image-prompt-작성-방법
title: Image Prompt 작성 방법
category: 10_Wiki/Topics
status: verified
canonical_id: self
aliases: [Image Prompt Engineering, T2I Prompting, Diffusion Prompting]
duplicate_of: none
source_trust_level: A
confidence_score: 0.9
verification_status: applied
tags: [image-generation, prompting, diffusion, midjourney, flux]
raw_sources: []
last_reinforced: 2026-05-10
github_commit: pending
tech_stack:
language: text
framework: FLUX/Midjourney/SDXL
---
# Image Prompt 작성 방법
## 매 한 줄
> **"매 image prompt 의 핵심 = 'Subject + Style + Composition + Quality modifier' 의 명시적 ordering."**. 2022 SD 1.5 era 의 keyword soup 에서 출발 → 2026 FLUX.1.1 Pro / Midjourney v7 / Imagen 4 era 는 natural-language 의 long-form description 의 superior 을 increasingly 한다. 매 prompt structure 의 deterministic 한 control 의 사용자 의 intent 의 model 의 latent space 의 mapping 을 direct.
## 매 핵심
### 매 Prompt anatomy (4-part structure)
- **Subject**: "a red fox", "an elderly Japanese ceramicist" — concrete noun + descriptors.
- **Style**: "oil painting", "cinematic photography, 35mm film", "Studio Ghibli" — medium / artist / movement.
- **Composition**: "low-angle shot", "rule of thirds", "shallow depth of field f/1.4" — framing 의 explicit specification.
- **Quality / technical**: "8k, sharp focus, golden hour lighting" — modifiers 의 final boost.
### 매 Token weight (Midjourney/SDXL)
- `(keyword:1.3)` — 매 emphasis 의 multiplier.
- `[keyword]` — 매 de-emphasis (SD WebUI).
- Midjourney `--stylize 250` (default 100) — 매 artistic license 의 control.
- Midjourney `::` — 매 multi-prompt weight: `red fox::2 forest::0.5`.
### 매 Negative prompt
1. SDXL/SD3: `negative_prompt="blurry, low quality, deformed hands, watermark"`.
2. Midjourney: `--no text logo` — exclusion list.
3. FLUX: 매 native negative prompt support 의 X — instead 매 positive 의 rephrase.
## 💻 패턴
### Pattern 1: FLUX.1.1 Pro 의 long-form natural prompt
```text
A photorealistic portrait of an elderly Japanese ceramicist, weathered hands
shaping a clay tea bowl on a wooden wheel. Soft window light from the left,
shallow depth of field. Earthy tones, traditional workshop with shelves of
glazed pottery in the background. Shot on Hasselblad H6D, 80mm lens, f/2.8.
```
### Pattern 2: Midjourney v7 structured prompt
```text
/imagine prompt: cyberpunk samurai standing in neon-lit Tokyo alleyway,
holographic katana, rain-soaked street reflections, cinematic composition,
volumetric lighting, by Syd Mead and Moebius --ar 16:9 --stylize 350 --v 7
```
### Pattern 3: SDXL 의 weighted prompt + negative
```python
from diffusers import StableDiffusionXLPipeline
import torch
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
).to("cuda")
prompt = "(masterpiece:1.2), red fox in autumn forest, golden hour, " \
"(detailed fur:1.3), cinematic photography, 8k"
negative = "blurry, low quality, deformed, watermark, text"
image = pipe(
prompt=prompt,
negative_prompt=negative,
num_inference_steps=30,
guidance_scale=7.5,
).images[0]
```
### Pattern 4: ControlNet 의 pose + prompt
```python
from diffusers import StableDiffusionXLControlNetPipeline, ControlNetModel
from controlnet_aux import OpenposeDetector
openpose = OpenposeDetector.from_pretrained("lllyasviel/Annotators")
pose_image = openpose(input_image)
controlnet = ControlNetModel.from_pretrained("xinsir/controlnet-openpose-sdxl-1.0")
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
controlnet=controlnet,
)
result = pipe(
prompt="a knight in shining armor, dramatic lighting",
image=pose_image,
controlnet_conditioning_scale=0.8,
).images[0]
```
### Pattern 5: LLM 의 prompt expansion
```python
import anthropic
client = anthropic.Anthropic()
def expand_prompt(short_idea: str) -> str:
msg = client.messages.create(
model="claude-opus-4-7",
max_tokens=300,
messages=[{
"role": "user",
"content": f"Expand this image idea into a detailed FLUX prompt "
f"(subject, style, composition, lighting, camera): {short_idea}"
}],
)
return msg.content[0].text
prompt = expand_prompt("lonely lighthouse at dusk")
```
### Pattern 6: Imagen 4 의 text rendering
```text
A vintage diner sign at night, neon letters reading "MOON CAFÉ — OPEN 24 HOURS",
warm pink and cyan glow, rain reflections on asphalt, 1950s Americana aesthetic,
cinematic wide shot
```
(Imagen 4 / FLUX 의 accurate text rendering 의 strong — 매 quote-wrapped text 의 use.)
### Pattern 7: Aspect ratio + seed control
```text
/imagine prompt: misty mountain temple at sunrise --ar 21:9 --seed 42 --v 7
```
- `--ar 21:9` — cinematic widescreen.
- `--seed 42` — 매 reproducibility.
## 매 결정 기준
| 상황 | Approach |
|---|---|
| Photorealistic portrait | FLUX.1.1 Pro + long natural prompt |
| Stylized art / illustration | Midjourney v7 + artist references |
| Precise pose / composition | SDXL + ControlNet (openpose/canny/depth) |
| Text in image | Imagen 4 / FLUX (quote-wrapped) |
| Local / private | SDXL or FLUX.1-dev on RTX 4090 |
| Batch / API workflow | Replicate / fal.ai / Together AI |
**기본값**: FLUX.1.1 Pro (photoreal) or Midjourney v7 (stylized) + 4-part structured prompt.
## 🔗 Graph
- 부모: [[Generative-AI]] · [[Diffusion-Models]]
- 변형: [[Vary Region (인페인팅)]] · [[ControlNet]] · [[LoRA-Fine-Tuning]]
- Adjacent: [[Prompt_Engineering|Prompt-Engineering]]
## 🤖 LLM 활용
**언제**: prompt expansion / variation generation / style transfer description / negative prompt brainstorming.
**언제 X**: 매 final image quality 의 judgment 의 X — 매 human-in-the-loop 의 visual evaluation 의 always 필요.
## ❌ 안티패턴
- **Keyword soup**: "8k, masterpiece, best quality, ultra detailed, ..." — 매 modern model 의 dilution. Natural language 의 prefer.
- **Contradictory modifiers**: "photorealistic anime" — 매 latent space 의 confusion.
- **Negative prompt overload**: 매 30+ negative tokens 의 generation 의 degrade.
- **No seed control**: 매 reproducibility 의 X — 매 iteration / A/B 의 impossible.
- **Ignoring aspect ratio**: 매 default square 의 composition 의 mismatch (cinematic shot 의 16:9 의 필요).
## 🧪 검증 / 중복
- Verified: Midjourney v7 docs (2026), Black Forest Labs FLUX docs, Stability AI SDXL paper.
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — full image prompt engineering guide |