mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
test(api): improve caption API test coverage and validation
Add model architecture coverage tests: - VQA model family detection for 19 architectures - Florence special prompts test (<OD>, <OCR>, <CAPTION>, etc.) - Moondream detection features test - VQA architecture capabilities test - Tagger model types and WD version comparison tests Improve test validation: - Add is_meaningful_answer() to reject responses like "." - Verify parameters have actual effect (not just accepted) - Show actual output traces in PASS/FAIL messages - Fix prefill tests to verify keep_prefill behavior Add configurable timeout: - Default timeout increased to 300s for slow models - Add --timeout CLI argument for customization Other improvements: - Add JoyCaption to recognized model families - Reduce BLIP models to avoid reloading large models - Better detection result validation for annotated images
This commit is contained in:
+1321
-34
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user