Address review: examples policy, SPDX headers, recipe docs, test coverage

- Register QwenImage21Pipeline in model_extras _EXTRA_SPECS with an
  image-to-image prompt builder that forwards height/width
- Rename run_qwen_image_21_edit.sh to run_qwen_image_21.sh
- Fix SPDX-FileCopyrightText headers
- Recipe: document mixed-KV-phase admission, add head-vs-diffusers A/B
  comparison section (measurements pending)
- Add test_registry.py and test_pipeline.py (preprocess, prepare_latents
  ordering, mixed-phase _assemble_kv_cache, post-process); extend
  test_batch_compatibility.py
This commit is contained in:
Isotr0py committed 2026-09-21 08:36:42 +00:00
1 parent d3cf26c1b1
commit 3d6a1c4d9a
11 files changed
+597 -31

No files matched your search

+21
View File
@@ -495,6 +495,27 @@ def test_bagel_image_to_image_prompt_builder() -> None:
assert result["negative_prompt"] == "ugly"
@pytest.mark.core_model
@pytest.mark.cpu
def test_qwen_image_21_image_to_image_prompt_builder() -> None:
dummy_image = Image.new("RGBA", (64, 64))
result = build_image_to_image_prompt(
"QwenImage21Pipeline",
prompt="make it dance",
negative_prompt="blurry",
input_image=dummy_image,
height=1024,
width=768,
)
assert result == {
"prompt": "make it dance",
"multi_modal_data": {"image": dummy_image},
"height": 1024,
"width": 768,
"negative_prompt": "blurry",
}
@pytest.mark.core_model
@pytest.mark.cpu
def test_unknown_pipeline_preserves_canonical_text_to_image_prompt() -> None: