Compact exact Krea2 atlas prompts
This commit is contained in:
@@ -172,7 +172,8 @@ def format_configured_cast_result(
|
||||
if not cast_labels and women_count == 1 and men_count == 1:
|
||||
cast_labels = ["Woman A", "Man A"]
|
||||
cast_labels = deps.merge_labels(cast_labels, pov_labels)
|
||||
expression = _filter_expression_for_krea2_variant(row, request.expression)
|
||||
has_atlas_variant = _has_krea2_atlas_variant(row)
|
||||
expression = "" if has_atlas_variant else _filter_expression_for_krea2_variant(row, request.expression)
|
||||
expression = deps.filter_pov_labeled_clauses(expression, pov_labels)
|
||||
expression = deps.natural_label_text(expression, cast_labels)
|
||||
composition = deps.sanitize_hardcore_environment_anchors(request.composition)
|
||||
@@ -213,7 +214,7 @@ def format_configured_cast_result(
|
||||
action,
|
||||
)
|
||||
camera_scene = _filter_camera_scene_for_krea2_variant(row, request.camera_scene)
|
||||
output_composition = "" if _has_krea2_atlas_variant(row) else deps.pov_composition_text(composition, pov_labels)
|
||||
output_composition = "" if has_atlas_variant else deps.pov_composition_text(composition, pov_labels)
|
||||
parts = [
|
||||
action,
|
||||
scene_anchor,
|
||||
@@ -226,7 +227,7 @@ def format_configured_cast_result(
|
||||
deps.expression_phrase(expression),
|
||||
deps.composition_phrase(output_composition, action, "The image is framed as", detail_density),
|
||||
camera,
|
||||
request.style if request.detail_level != "concise" else "",
|
||||
"" if has_atlas_variant else request.style if request.detail_level != "concise" else "",
|
||||
]
|
||||
return KreaConfiguredCastPrompt(deps.paragraph(parts))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user