Configure incremental caption Meili batches

This commit is contained in:
Sleeps
2026-10-07 14:23:11 +01:00
parent 30af4ca3d7
commit 0120bca2d0
+4
View File
@@ -55,6 +55,10 @@ class Settings:
).strip().lower() not in {"0", "false", "no", "off"} ).strip().lower() not in {"0", "false", "no", "off"}
caption_timeout_seconds: int = int(os.getenv("CAPTION_TIMEOUT_SECONDS", "180")) caption_timeout_seconds: int = int(os.getenv("CAPTION_TIMEOUT_SECONDS", "180"))
caption_max_tokens: int = int(os.getenv("CAPTION_MAX_TOKENS", "120")) caption_max_tokens: int = int(os.getenv("CAPTION_MAX_TOKENS", "120"))
caption_meili_batch_size: int = max(
1,
int(os.getenv("CAPTION_MEILI_BATCH_SIZE", "500")),
)
caption_prompt_file: Path = Path( caption_prompt_file: Path = Path(
os.getenv("CAPTION_PROMPT_FILE", "./data/caption_prompt.txt") os.getenv("CAPTION_PROMPT_FILE", "./data/caption_prompt.txt")
).expanduser().resolve() ).expanduser().resolve()