no length caps and no lean doctrine in subject_definitions - node-author compactness rules removed (different H3 model)
This commit is contained in:
parent
962c667418
commit
de19ecee44
@ -177,7 +177,7 @@ and sampler latent or the video can come out square.
|
||||
20 year old woman with blonde hair, blue eyes and a medium build" — age, hair,
|
||||
eyes, build; never clothing, never a nude/bare state); a character WITH a
|
||||
reference image gets "<Subject 1> binds to <Image 1> : what the image actually
|
||||
shows" (the writing LLM is multimodal — look at it, no length cap); and a user
|
||||
shows" (the writing LLM is multimodal — look at it); and a user
|
||||
refmod (`sam:&identity: ...; voice: ...&` in the story's characters block) is
|
||||
carried through VERBATIM as "<Subject 1> identity: ...; voice: ..." — never
|
||||
rewritten, never trimmed, exempt from every defs limit. Weave the head-to-toe
|
||||
|
||||
@ -254,8 +254,8 @@ Shots are flat. A shot never contains a nested object.
|
||||
marks and carry the text through VERBATIM: "<Subject 1> identity: <their
|
||||
identity text>; voice: <their voice text>". Never rewrite, trim, reorder, or
|
||||
"improve" a refmod line — it is the user's tested wording and overrides every
|
||||
other rule about definitions (only the no-image form has a length cap, and no
|
||||
form's limits ever apply to a refmod line).
|
||||
other rule about definitions (the no-image clothing and skin-state bans
|
||||
never apply to a refmod line).
|
||||
Define <Subject 2> the same way when the story casts a second recurring person.
|
||||
Never define a label twice; never define a label you do not use.
|
||||
2. "summary:" then "[reference generation]" — exactly this directive on every scene,
|
||||
|
||||
@ -368,8 +368,8 @@ The sound picture is its own element and lives in the overall_soundscape section
|
||||
carry the text through VERBATIM: "<Subject 1> identity: <their identity text>;
|
||||
voice: <their voice text>". Never rewrite, trim, reorder, or "improve" a
|
||||
refmod line — it is the user's tested wording and overrides every other rule
|
||||
about definitions (only the no-image form has a length cap, and no form's
|
||||
limits ever apply to a refmod line).
|
||||
about definitions (the no-image clothing and skin-state bans never apply to
|
||||
a refmod line).
|
||||
Define <Subject 2> the same way when the outline casts a second person. Never
|
||||
define a label twice; never define a label you do not use.
|
||||
2. "summary:" then "[reference generation]" — exactly this directive on every scene
|
||||
|
||||
@ -32,16 +32,15 @@ REF2VA_RETENTION_MARKERS = {"fully_preserved", "partially_preserved",
|
||||
"attribute_transfer", "weak_reference"}
|
||||
# Rule 7 - a subject_definitions line comes in exactly one of three forms:
|
||||
# 1. no reference image -> "<Subject N> is a <age> ... with <hair>, <eyes> and
|
||||
# <build>" - lean physical traits only (25-word cap): never clothing, never a
|
||||
# nude/bare skin state
|
||||
# <build>" - physical traits only: never clothing, never a nude/bare skin
|
||||
# state
|
||||
# 2. reference image -> "<Subject N> binds to <Image N> : <what the image
|
||||
# actually shows>" - faithful to the image, NO length cap; the writer is
|
||||
# multimodal
|
||||
# actually shows>" - faithful to the image; the writer is multimodal
|
||||
# 3. user refmod -> "<Subject N> identity: <verbatim>; voice: <verbatim>"
|
||||
# - the user's own tested wording, carried through untouched (exempt from
|
||||
# every no-image trait limit: length, clothing, skin state)
|
||||
# the no-image content bans: clothing and skin state)
|
||||
# No form carries a length cap - describe fully what the model needs.
|
||||
# In every form the full look is still woven into the [Shot 1] body.
|
||||
REF2VA_DEF_MAX_WORDS = 25
|
||||
REF2VA_REFMOD_RE = re.compile(r"^identity\s*:", re.I)
|
||||
REF2VA_BINDS_RE = re.compile(r"^binds to <Image\s+\d+>\s*:\s*", re.I)
|
||||
REF2VA_DEF_SKINSTATE_RE = re.compile(
|
||||
@ -206,12 +205,6 @@ def check_ref2va_prompt(lines, dur, where, prev_handoff=None):
|
||||
f"definition - physical traits only (age, hair, eyes, "
|
||||
f"build); weave every garment into the [Shot 1] body "
|
||||
f"where the action touches it: {line[:60]!r}")
|
||||
words = len(anchor.split())
|
||||
if words > REF2VA_DEF_MAX_WORDS:
|
||||
raise ValueError(f"{where}: {m.group(1)} definition is {words} words - "
|
||||
f"keep it to lean physical traits (age, hair, eyes, "
|
||||
f"build); the full look is woven into the [Shot 1] body "
|
||||
f"according to what the scene shows")
|
||||
defined.append(m.group(1))
|
||||
if "<Subject 1>" not in defined:
|
||||
raise ValueError(f"{where}: <Subject 1> must be defined in subject_definitions")
|
||||
@ -245,8 +238,7 @@ def check_ref2va_prompt(lines, dur, where, prev_handoff=None):
|
||||
f"texture, sound, exit state)")
|
||||
if "<Subject 1>" not in body:
|
||||
raise ValueError(f"{where}: the [Shot 1] body must re-state <Subject 1> and "
|
||||
f"carry the head-to-toe look woven into the action (lean "
|
||||
f"definitions do not render)")
|
||||
f"carry the head-to-toe look woven into the action")
|
||||
if " is now " in dd.lower():
|
||||
raise ValueError(f"{where}: change stated as bare outcome instead of shown progression")
|
||||
if re.search(r"\bbare\b", dd, re.I):
|
||||
@ -658,7 +650,7 @@ REF2VA_NURSE = {
|
||||
}
|
||||
|
||||
# DOOR exercises the third definition form: a user refmod carried through
|
||||
# verbatim (identity + voice), exempt from the length cap and content bans.
|
||||
# verbatim (identity + voice), exempt from the no-image content bans.
|
||||
REF2VA_DOOR = {
|
||||
"id": "door_stop",
|
||||
"duration_seconds": 8,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user