auto-save 2026-05-18 00:57 (~4)

This commit is contained in:
2026-05-18 00:57:07 +08:00
parent 29bfaeff4c
commit 34ecab42ba
4 changed files with 96 additions and 30 deletions

View File

@@ -4020,9 +4020,9 @@ def generate_subject_assets(job_id: str, idx: int, element_id: str, req: Generat
prompt_extra = req.prompt.strip()
prompt_extra_clause = f"User direction: {prompt_extra[:1200]} " if prompt_extra else ""
identity_lock_clause = (
"Identity lock: this request generates a six-view pack for ONE single subject. "
"Identity lock: these API calls generate a six-view pack for ONE single subject, but each individual output file must show only its one requested view. "
"Before rendering, infer one consistent character bible from the reference image(s): gender presentation, age range, body proportions, head shape, face direction cues, material, silhouette, wardrobe/material style, and commercial mood. "
"Keep that same character bible unchanged across every generated view. "
"Keep that same character bible unchanged across every generated view in separate files. "
"If user direction requests a gender, age, or style change, apply that one change uniformly to all views; never mix male/female, young/old, or multiple style identities inside the same six-view pack. "
"For transparent humanoids, keep the same transparent skin shell, skeleton proportions, visible spine/rib cage/pelvis/limb bones, and non-horror wellness character style in every view. "
)
@@ -4040,10 +4040,18 @@ def generate_subject_assets(job_id: str, idx: int, element_id: str, req: Generat
view_prompt = f"full-body upright standing character reference, {view_label}"
else:
view_prompt = f"complete object/product reference, {view_label} view"
view_name = view.replace("_", " ")
single_view_clause = (
f"Single-image output rule: this output file is ONLY for the {view_label} view ({view_name}). "
"Render exactly one subject, one time, in one pose and one camera angle. "
"Do not create a six-view sheet, contact sheet, grid, storyboard, lineup, comparison layout, before/after layout, mirrored pair, duplicate subjects, thumbnails, labels, captions, arrows, view names, panel borders, or multiple versions in the same image. "
"Do not include any of the other five views in this image. "
)
prompt = (
f"Use the reference image(s) only as visual evidence; do not crop, cut out, paste, trace, or extract pixels from the source. "
f"Generate one newly rendered {view_prompt} for {target}. "
f"The subject is a {kind_phrase}. If multiple frames are shown, treat them as evidence of one same subject, not multiple subjects. "
+ single_view_clause
+ identity_clause
+ identity_lock_clause
+ prompt_extra_clause