Add Krea2 spread pose candidate
This commit is contained in:
+32
-2
@@ -6797,6 +6797,11 @@ def smoke_krea2_pose_variant_catalog_policy() -> None:
|
||||
manual == ["pov_fingering_reclined_open_thighs"],
|
||||
f"Krea2 pose-variant manual filtering changed unexpectedly: {manual}",
|
||||
)
|
||||
interaction = krea2_pose_variant_catalog.variant_keys(action_family="interaction")
|
||||
_expect(
|
||||
interaction == ["pov_spread_open_thigh_presentation"],
|
||||
f"Krea2 pose-variant interaction filtering changed unexpectedly: {interaction}",
|
||||
)
|
||||
handjob = krea2_pose_variant_catalog.get_variant("pov_handjob_upright_centered")
|
||||
_expect(
|
||||
any("woman's right hand wraps" in str(cue) for cue in handjob.get("prompt_cues", [])),
|
||||
@@ -6817,6 +6822,12 @@ def smoke_krea2_pose_variant_catalog_policy() -> None:
|
||||
any("viewer hand enters from the foreground" in str(cue) for cue in fingering.get("prompt_cues", [])),
|
||||
"Fingering variant lost foreground-hand cue",
|
||||
)
|
||||
spread = krea2_pose_variant_catalog.get_variant("pov_spread_open_thigh_presentation")
|
||||
_expect(spread.get("status") == "candidate", "Spread variant should remain a candidate until fixed-seed evidence exists")
|
||||
_expect(
|
||||
any("legs raised or knees held wide" in str(cue) for cue in spread.get("prompt_cues", [])),
|
||||
"Spread variant lost open-thigh cue",
|
||||
)
|
||||
refs = krea2_pose_variant_catalog.reference_paths("pov_boobjob_upright_cleavage")
|
||||
_expect(refs and all(path.name.endswith(".png") for path in refs), "Boobjob reference paths are not image paths")
|
||||
_expect(all("bg" not in str(path).lower() for path in refs), "Reference paths should not include background-only atlas images")
|
||||
@@ -6880,21 +6891,30 @@ def smoke_krea2_tuning_report_policy() -> None:
|
||||
fingering = by_key.get("pov_fingering_reclined_open_thighs") or {}
|
||||
_expect(fingering.get("coverage_state") == "needs_fixed_seed_tests", "Fingering report should need fixed-seed tests")
|
||||
_expect(fingering.get("accepted_evidence_count") == 0, "Fingering report should not have accepted evidence yet")
|
||||
spread = by_key.get("pov_spread_open_thigh_presentation") or {}
|
||||
_expect(spread.get("coverage_state") == "needs_fixed_seed_tests", "Spread report should need fixed-seed tests")
|
||||
_expect(spread.get("accepted_evidence_count") == 0, "Spread report should not have accepted evidence yet")
|
||||
summary = krea2_tuning_report.coverage_summary()
|
||||
_expect(summary.get("status_counts", {}).get("proven") == 3, "Krea2 tuning report proven count changed")
|
||||
_expect(summary.get("status_counts", {}).get("candidate") == 3, "Krea2 tuning report candidate count changed")
|
||||
_expect(summary.get("status_counts", {}).get("candidate") == 4, "Krea2 tuning report candidate count changed")
|
||||
_expect(
|
||||
summary.get("variants_without_accepted_evidence") == [
|
||||
"pov_ballsucking_low_head",
|
||||
"pov_footjob_frontal_sole_stroke",
|
||||
"pov_fingering_reclined_open_thighs",
|
||||
"pov_spread_open_thigh_presentation",
|
||||
],
|
||||
f"Krea2 tuning report missing-evidence set changed: {summary.get('variants_without_accepted_evidence')}",
|
||||
)
|
||||
plans = krea2_tuning_report.next_test_plans()
|
||||
_expect(
|
||||
[plan.get("key") for plan in plans]
|
||||
== ["pov_ballsucking_low_head", "pov_footjob_frontal_sole_stroke", "pov_fingering_reclined_open_thighs"],
|
||||
== [
|
||||
"pov_ballsucking_low_head",
|
||||
"pov_footjob_frontal_sole_stroke",
|
||||
"pov_fingering_reclined_open_thighs",
|
||||
"pov_spread_open_thigh_presentation",
|
||||
],
|
||||
"Krea2 tuning report next plans changed",
|
||||
)
|
||||
plan_by_key = {plan.get("key"): plan for plan in plans}
|
||||
@@ -6929,6 +6949,15 @@ def smoke_krea2_tuning_report_policy() -> None:
|
||||
any(str(path).endswith("fingering/103_fingering.png") for path in fingering_plan.get("reference_paths") or []),
|
||||
"Fingering test plan lost atlas reference path",
|
||||
)
|
||||
spread_plan = plan_by_key["pov_spread_open_thigh_presentation"]
|
||||
_expect(
|
||||
"legs raised or knees held wide" in " ".join(spread_plan.get("prompt_cues") or []),
|
||||
"Spread test plan lost open-thigh cue",
|
||||
)
|
||||
_expect(
|
||||
any(str(path).endswith("spread/100_spread_.png") for path in spread_plan.get("reference_paths") or []),
|
||||
"Spread test plan lost atlas reference path",
|
||||
)
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
atlas_root = Path(tmpdir)
|
||||
for folder in ("doggy", "doggy_control", "custom_pose", "custom_pose_control", "bg", "woman", "doggy_bg"):
|
||||
@@ -6963,6 +6992,7 @@ def smoke_krea2_tuning_report_policy() -> None:
|
||||
_expect("pov_ballsucking_low_head" in markdown, "Krea2 tuning report markdown lost candidate variant")
|
||||
_expect("pov_footjob_frontal_sole_stroke" in markdown, "Krea2 tuning report markdown lost footjob candidate variant")
|
||||
_expect("pov_fingering_reclined_open_thighs" in markdown, "Krea2 tuning report markdown lost fingering candidate variant")
|
||||
_expect("pov_spread_open_thigh_presentation" in markdown, "Krea2 tuning report markdown lost spread candidate variant")
|
||||
_expect("needs_fixed_seed_tests" in markdown, "Krea2 tuning report markdown lost coverage state")
|
||||
_expect("Prompt cues" in markdown, "Krea2 tuning report markdown lost next-test cue section")
|
||||
_expect("Avoid cues" in markdown, "Krea2 tuning report markdown lost next-test avoid section")
|
||||
|
||||
Reference in New Issue
Block a user