mike 5a8acece09 Summary
• Implemented robust model and scene reference validations in both the FastAPI backend and frontend to prevent empty, corrupt, or missing files from silently failing or producing duplicated background
   fallbacks.
   • Enhanced scenery prompt translation on the backend to dynamically map user-specified "Image" numbers e.g. Image 1, Image 2 to Qwen-specific "Picture" placeholders Picture 1, Picture 2, avoiding template
   mismatch desyncs.

   Changes
   • File & Path Validation: Added detailed validations to the /generate-scenery endpoint to ensure model_filename and scene_image paths exist on disk, are resolved without query parameters stripping ?t=..., are
   not directories, and are openable and verifiable as PIL images.
   • Identical Reference Checks: Introduced checks in both the backend and frontend submitGenerateScenery inside car.html to raise an HTTP 400 exception / display a toast warning if the model and scene references
   point to the same image.
   • Dynamic Prompt Mapping: Configured the backend to auto-translate occurrences of image 1/2/3 in custom scenery prompts to Picture 1/2/3, facilitating correct Qwen layout hint targeting.
   • Regression Unit Tests: Wrote comprehensive unit tests test_13b_scenery_validation_checks in test_regression_api.py verifying file checking, duplicate reference detection, and query parameter stripping.

   Verification
   • Executed test_regression_api.py simulated API testing with 100% success 19/19 tests passed.
   • Executed test_regression_qwen.py end-to-end model/hardware integration test suite successfully 2/2 tests passed.
2026-07-01 12:09:53 +02:00
2026-07-01 02:25:51 +02:00
2026-07-01 02:25:51 +02:00
2026-07-01 02:25:51 +02:00
aa
2026-06-21 04:21:40 +02:00
2026-07-01 02:25:51 +02:00
2026-07-01 06:43:29 +02:00
2026-07-01 12:09:53 +02:00
2025-12-14 19:26:27 +00:00
2026-06-22 02:04:28 +02:00
2026-06-28 16:56:07 +02:00
2026-06-26 17:28:17 +02:00
2026-07-01 05:42:20 +02:00
2026-06-29 12:27:10 +02:00
aa
2026-06-18 23:26:30 +02:00
2026-07-01 02:25:51 +02:00
2026-06-29 12:27:10 +02:00
Description
No description provided
177 MiB
Languages
HTML 62.5%
Python 35.3%
Shell 2.2%