Preserve hyphenated SDXL tags

This commit is contained in:
2026-06-27 22:14:20 +02:00
parent c74798d80f
commit 15b28b422f
3 changed files with 12 additions and 1 deletions
+4
View File
@@ -4676,6 +4676,10 @@ def smoke_sdxl_tag_policy() -> None:
_expect("hands braced on thighs" in axis_tags, "SDXL axis tags lost selected detail axis")
_expect("close body alignment" in axis_tags, "SDXL axis tags lost split detail axis")
_expect("random" not in axis_tags, "SDXL axis tags should ignore random placeholders")
hyphenated_tags = sdxl_tag_policy.split_tag_text("front-and-back penetration with hands on hips")
_expect("front-and-back penetration" in hyphenated_tags, "SDXL tag splitter broke hyphenated and compound")
_expect("front-" not in hyphenated_tags and "-back penetration" not in hyphenated_tags, "SDXL tag splitter emitted broken hyphen fragments")
_expect("hands on hips" in hyphenated_tags, "SDXL tag splitter stopped splitting non-hyphenated with connector")
_expect(
sdxl_formatter._camera_tags(row) == sdxl_tag_policy.camera_tags(row),
"SDXL formatter camera helper should delegate to sdxl_tag_policy",