test_flux2_similarity
¶
Latent-slice regression tests for Flux2 text-to-image variants.
Flux2 currently has local parity coverage against the official/reference pipeline, but CI needs a small deterministic regression gate for seeded HF artefacts. Pixel-space comparisons are unnecessarily brittle for this first slot, so the test follows the latent helper pattern used by LTX-2: generate a single-image latent with the production recipe, persist the generated latent, and compare a stable latent signature plus the full tensor against the device reference.
The default and full-quality parameter maps intentionally carry the same
recipe values for now. The --ssim-full-quality flag still switches the
reference tier through conftest.py; separate full-quality recipes can be
introduced after the initial Flux2 references have a stable CI window.