Compact exact Krea2 atlas prompts

This commit is contained in:
2026-06-30 21:37:39 +02:00
parent 4689cc7942
commit ff484aa27c
5 changed files with 40 additions and 9 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ def _krea2_atlas_variant_sentence(axis_values: Any) -> str:
variant = _selected_krea2_atlas_variant(axis_values)
if not variant:
return ""
cues = _unique_texts([variant.get("canonical_geometry"), *(variant.get("prompt_cues") or [])])
cues = _unique_texts(list(variant.get("prompt_cues") or []) or [variant.get("canonical_geometry")])
return _clean("; ".join(cues)).rstrip(".")
@@ -331,7 +331,7 @@ def pov_hardcore_pose_sentence(
atlas_sentence = _krea2_atlas_variant_sentence(axis_values)
if atlas_sentence:
return sentence(atlas_sentence)
return atlas_sentence
def oral_direction() -> tuple[bool, bool]:
oral_context = f"{context} {action_lower}"