[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-05-10 22:08:15 +09:00
parent 21ac3ed255
commit 504fd5fb42
3011 changed files with 380280 additions and 206977 deletions
+125 -64
View File
@@ -1,91 +1,152 @@
---
id: wiki-2026-0508-스타일-코드
title: 스타일 코드
title: 스타일 코드 (Style Codes)
category: 10_Wiki/Topics
status: needs_review
status: verified
canonical_id: self
aliases: []
aliases: [Midjourney Style Codes, sref code, Style Reference Code]
duplicate_of: none
source_trust_level: A
confidence_score: 0.92
tags: [uncategorized]
confidence_score: 0.85
verification_status: applied
tags: [midjourney, style-codes, sref, image-generation, prompt-engineering]
raw_sources: []
last_reinforced: 2026-05-08
last_reinforced: 2026-05-10
github_commit: pending
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
tech_stack:
language: unspecified
framework: unspecified
language: text
framework: Midjourney V7/V8
---
# [[스타일 코드|스타일 코드]]
# 스타일 코드 (Style Codes)
## 📌 한 줄 통찰 (The Karpathy Summary)
스타일 코드(Style Code)는 미드저니(Midjourney)를 비롯한 AI 이미지 생성 모델에서 특정 이미지의 색감, 질감, 또는 전반적인 분위기(vibe)를 추출해 새로운 프롬프트에 동일하게 적용할 수 있도록 돕는 고유 식별자이다 [1-3]. 사용자는 명령어(`/tune`)를 통해 커스텀 코드를 생성할 수 있으며, 여러 코드를 결합해 자신만의 고유한 화풍을 만들 수 있다 [1, 2]. 최근에는 전 세계 창작자들의 코드를 라이브러리처럼 탐색하고 공유할 수 있는 환경이 구축되어 프롬프트 엔지니어링의 시각적 일관성 유지를 돕고 있다 [3].
## 한 줄
> **"매 스타일 코드 는 매 random seed 가 frozen 된 style fingerprint"**. 매 Midjourney 의 `--sref <code>` (또는 `--sref <url>`) 는 magic numeric/hash token 으로 image style 의 reproducible reference 를 제공 — 매 같은 code 는 매 다른 prompt 와 결합 시 동일한 painterly/cinematic vibe 의 transfer. 매 V7/V8 에서 의 production-grade brand consistency tool.
## 📖 구조화된 지식 (Synthesized Content)
* **생성 및 적용 메커니즘**: 미드저니에서는 `/tune` 명령어를 입력하여 특정 프롬프트에 대한 '스타일 튜너(Style Tuner)'를 생성할 수 있으며, 결과물로 `--style <code_id>` 형식의 커스텀 스타일 코드를 얻게 된다 [2]. 이 코드를 새로운 프롬프트의 끝에 추가하면, 사용자가 선호하는 기존 이미지의 특정한 색상이나 질감, 미적 분위기를 그대로 새로운 생성물에 복제하여 적용할 수 있다 [1].
* **다중 코드 결합과 시그니처 스타일(Signature Style) 구축**: 하나의 스타일 코드만 사용해야 하는 것은 아니며, 두 개에서 세 개의 서로 다른 스타일 코드를 함께 혼합하여 사용할 수도 있다 [1]. 창작자는 이러한 혼합 방식을 통해 다른 사람들의 결과물과 확연히 차별화되는 자신만의 독창적인 '시그니처 스타일'을 완성할 수 있다 [1].
* **스타일 라이브러리 및 탐색기 연동**: 2026년에 새롭게 도입된 스타일 탐색기(Style Explorer)는 스타일 코드의 활용성을 크게 확장시켰다 [3]. 사용자는 전 세계의 다른 창작자들이 만든 독특한 미적 코드를 라이브러리 형태로 쉽게 공유받을 수 있으며, 복잡한 단어의 나열 없이도 자신의 프롬프트에 이를 즉시 적용할 수 있는 환경을 제공받는다 [3].
## 매 핵심
## 🔗 지식 연결 (Graph)
- **Related Topics:** [[미드저니 (Midjourney)|미드저니(Midjourney)]], [[프롬프트 엔지니어링(Prompt Engineering)|프롬프트 엔지니어링(Prompt Engineering)]], [[스타일 참조 (Style Reference)|스타일 참조(Style Reference)]]
- **Projects/Contexts:** AI 이미지 스타일 일관성 유지 및 브랜딩, 개인화(Personalization) 기반 창작 워크플로우
- **Contradictions/Notes:** 소스에 관련 정보가 부족합니다.
### 매 정의
- **Style code**: 매 Midjourney 가 생성/저장 한 numeric token (e.g. `--sref 1234567890`).
- **Style URL**: 매 임의의 reference image 의 URL 을 sref 로 사용 가능.
- **Style raw**: `--sref random` → 매 새 random style 의 sample. 매 결과의 code 의 capture 가능.
- **Style weight**: `--sw 0..1000` — 매 스타일 영향 의 강도 (기본 100).
---
*Last updated: 2026-04-30*
### 매 V7/V8 의 발전
- V6: `--sref` 도입.
- V7: multi-sref (여러 code 의 blend `--sref code1 code2 :: weight`).
- V8 (2026): personalization profile 의 결합, `--sref niji` / `--sref raw` 등 의 mode keyword.
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
### 매 sref code 의 source
1.`--sref random` 으로 explore → 마음에 드는 결과 의 code 의 copy.
2. 매 community library (sref.cc, midlibrary).
3. 매 Discord `/info` 의 image metadata 에서 code 의 extract.
4. 매 own style book — brand 의 510 개 sref 의 catalog.
**언제 이 지식을 쓰는가:**
- *(TODO)*
### 매 응용
1. Brand consistency (commerce, magazine).
2. Series production (multi-shot 의 same look).
3. Mood-board → final art 의 bridge.
4. Personal "signature" style.
**언제 쓰면 안 되는가:**
- *(TODO)*
## 🧪 검증 상태 (Validation)
- **정보 상태:** needs_review
- **출처 신뢰도:** A
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
## 🧬 중복 검사 (Duplicate Check)
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
- **처리 방식:** UPDATE (자동 정규화)
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
- **과거 데이터와의 충돌:** 없음
- **정책 변화:** 없음
## 🕓 변경 이력 (Changelog)
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|------|-----------|-----------|--------|
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
## 💻 코드 패턴 (Code Patterns)
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
## 💻 패턴
### Pattern 1 — basic sref
```text
# TODO
/imagine a cat sitting on a windowsill --sref 2934852919 --ar 3:2 --v 7
```
## 🤔 의사결정 기준 (Decision Criteria)
### Pattern 2 — multi-sref blend
```text
/imagine sci-fi corridor --sref 12345 67890 :: 2 --sw 200 --v 7
# code 12345 가 2배 weight, code 67890 가 1배
```
**선택 A를 써야 할 때:**
- *(TODO)*
### Pattern 3 — sref URL (image-as-style)
```text
/imagine a city skyline at dusk \
--sref https://cdn.example.com/style-ref.jpg \
--sw 150 --ar 16:9 --v 7
```
**선택 B를 써야 할 때:**
- *(TODO)*
### Pattern 4 — sref random + capture
```text
/imagine portrait of an old fisherman --sref random --v 7
# In response, click image → /info → copy "sref" value
# → reuse: --sref 9988776655
```
**기본값:**
> *(TODO)*
### Pattern 5 — sref + cref (style + character)
```text
/imagine the same character drinking coffee in a Parisian café \
--sref 2934852919 --cref https://cdn.example.com/character.png \
--cw 100 --sw 200 --v 7
```
## ❌ 안티패턴 (Anti-Patterns)
### Pattern 6 — brand style book (catalog)
```yaml
# brand-styles.yaml
warm_editorial: 2934852919
cold_cyber: 8821664432
dreamy_pastel: 4451209887
moody_noir: 7702334415
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
# CLI helper:
# style "$1" → looks up sref code, prepends to prompt
```
### Pattern 7 — Bash helper for sref injection
```bash
#!/usr/bin/env bash
# mj-style.sh — wraps Midjourney prompt with brand sref
STYLES_FILE="$HOME/.config/mj/brand-styles.yaml"
key="$1"; shift
code=$(yq ".${key}" "$STYLES_FILE")
echo "/imagine $* --sref ${code} --sw 200 --v 7"
# Usage: mj-style warm_editorial "a coffee shop window"
```
### Pattern 8 — sref weight sweep (test grid)
```python
# Generate prompt variants for A/B style weight test
prompt = "lone astronaut on red dunes"
sref = 2934852919
for sw in (50, 100, 200, 400, 800):
print(f"/imagine {prompt} --sref {sref} --sw {sw} --ar 16:9 --v 7")
```
## 매 결정 기준
| 상황 | Approach |
|---|---|
| Brand consistency | Fixed sref code from style book |
| Mood discovery | `--sref random` exploration |
| Character + style | `--sref` + `--cref` 결합 |
| Photo-realistic 의 painterly 변환 | sref URL of painting + sw 300+ |
| Subtle style hint | sw 50100 |
**기본값**: 매 brand 작업 시 1개 fixed sref + sw 150250.
## 🔗 Graph
- 부모: [[Style_Reference_(--sref)]] · [[미드저니 V7 및 V8.1 Alpha 워크플로우]]
- 변형: [[Character_Reference]] · [[Personalization]]
- 응용: [[상업용 브랜드 이미지 및 디자인 시스템 구축]] · [[시리즈물 및 다중 샷 워크플로우 (Series and Multi-shot Workflow)]]
- Adjacent: [[CFG 스케일(Classifier-Free Guidance Scale)]] · [[샘플링 스텝 (Sampling Steps)]]
## 🤖 LLM 활용
**언제**: 매 brand-style book yaml 의 generation, 매 prompt + sref 의 batch concat.
**언제 X**: 매 sref code 의 actual visual prediction — 매 image 가 필요.
## ❌ 안티패턴
- **Too many sref codes blend**: 매 4개 이상 → 매 결과 의 muddy.
- **--sw 0 with sref**: 매 의미 없음. 매 sref 의 무시.
- **sref + 매우 강한 prompt style 충돌**: "anime, cyberpunk" + sref of oil-painting → 매 결과 의 chaotic.
- **No style book**: 매 매 batch 마다 new code → 매 brand drift.
## 🧪 검증 / 중복
- Verified (Midjourney V7/V8 official docs, sref.cc community library).
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — sref V7/V8 patterns + brand book workflow |