Files
2nd/10_Wiki/Topic_Programming/AI_and_ML/스타일 코드.md
T
Antigravity Agent 9148c358d0 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 폴더 제거.
2026-07-05 00:33:48 +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