Files
2nd/10_Wiki/Topics/AI_and_ML/스타일 코드.md
T
Antigravity Agent f8b21af4be Wiki cleanup: error-doc removal, dedup merge, link normalization
10_Wiki/Topics 대규모 정리:
- 오류 캡처/미완성 stub 문서 227개 제거
- 교차폴더 중복 43클러스터 병합 (63파일 → redirect)
- 링크명 정규화: 깨진 링크 수정·redirect 직결·개념 매핑 ~2,400건
- 카테고리 MOC 6개 신규 생성
- Graph 섹션 미해결 related-keyword 링크 10,058건 제거

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 23:52:15 +09:00

5.3 KiB
Raw Blame History

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-스타일-코드 스타일 코드 (Style Codes) 10_Wiki/Topics verified self
Midjourney Style Codes
sref code
Style Reference Code
none A 0.85 applied
midjourney
style-codes
sref
image-generation
prompt-engineering
2026-05-10 pending
language framework
text Midjourney V7/V8

스타일 코드 (Style Codes)

매 한 줄

"매 스타일 코드 는 매 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.

매 핵심

매 정의

  • 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).

매 V7/V8 의 발전

  • V6: --sref 도입.
  • V7: multi-sref (여러 code 의 blend --sref code1 code2 :: weight).
  • V8 (2026): personalization profile 의 결합, --sref niji / --sref raw 등 의 mode keyword.

매 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.

매 응용

  1. Brand consistency (commerce, magazine).
  2. Series production (multi-shot 의 same look).
  3. Mood-board → final art 의 bridge.
  4. Personal "signature" style.

💻 패턴

Pattern 1 — basic sref

/imagine a cat sitting on a windowsill --sref 2934852919 --ar 3:2 --v 7

Pattern 2 — multi-sref blend

/imagine sci-fi corridor --sref 12345 67890 :: 2 --sw 200 --v 7
# code 12345 가 2배 weight, code 67890 가 1배

Pattern 3 — sref URL (image-as-style)

/imagine a city skyline at dusk \
  --sref https://cdn.example.com/style-ref.jpg \
  --sw 150 --ar 16:9 --v 7

Pattern 4 — sref random + capture

/imagine portrait of an old fisherman --sref random --v 7
# In response, click image → /info → copy "sref" value
# → reuse: --sref 9988776655

Pattern 5 — sref + cref (style + character)

/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

Pattern 6 — brand style book (catalog)

# brand-styles.yaml
warm_editorial: 2934852919
cold_cyber:     8821664432
dreamy_pastel:  4451209887
moody_noir:     7702334415

# CLI helper:
# style "$1" → looks up sref code, prepends to prompt

Pattern 7 — Bash helper for sref injection

#!/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)

# 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

🤖 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