Split Krea camera layout sentence
This commit is contained in:
@@ -539,13 +539,16 @@ def _caption_expression_grammar_issues(name: str, caption_text: str) -> list[str
|
||||
|
||||
|
||||
def _krea_grammar_issues(name: str, krea_prompt: str) -> list[str]:
|
||||
issues: list[str] = []
|
||||
if re.search(
|
||||
r"\b(?:woman|man|person),\s+with\s+[^.;]{0,120}\bfigure\s+with\b",
|
||||
krea_prompt,
|
||||
flags=re.IGNORECASE,
|
||||
):
|
||||
return [f"{name}.krea_prompt: subject_appearance_with_grammar"]
|
||||
return []
|
||||
issues.append(f"{name}.krea_prompt: subject_appearance_with_grammar")
|
||||
if re.search(r",\s+[A-Z][A-Za-z -]+ camera layout\b", krea_prompt):
|
||||
issues.append(f"{name}.krea_prompt: comma_joined_camera_layout")
|
||||
return issues
|
||||
|
||||
|
||||
def _composition_label_issues(name: str, prompts: dict[str, str]) -> list[str]:
|
||||
|
||||
Reference in New Issue
Block a user