Clean SDXL imperative hand tags

This commit is contained in:
2026-06-27 22:27:41 +02:00
parent 030a1255e1
commit 718da9a68d
3 changed files with 15 additions and 1 deletions
+2
View File
@@ -4685,6 +4685,8 @@ def smoke_sdxl_tag_policy() -> None:
_expect("woman" not in subject_pair_tags and "man are mid-transition" not in subject_pair_tags, "SDXL tag splitter emitted broken paired character fragments")
sentence_boundary_tags = sdxl_tag_policy.split_tag_text("keep hands on hips, breasts, thighs. Man watches close")
sentence_boundary_tags_lower = [tag.lower() for tag in sentence_boundary_tags]
_expect("hands on hips" in sentence_boundary_tags_lower, "SDXL tag splitter did not clean leading keep imperative")
_expect("keep hands on hips" not in sentence_boundary_tags_lower, "SDXL tag splitter kept leading keep imperative")
_expect("thighs" in sentence_boundary_tags, "SDXL tag splitter lost pre-period tag")
_expect("man watches close" in sentence_boundary_tags_lower, "SDXL tag splitter did not split sentence-boundary tag")
_expect(