@@ -27,9 +31,9 @@ To test visual output correctness, you can:
...
@@ -27,9 +31,9 @@ To test visual output correctness, you can:
1.**Generate reference images:** Use the original 16-bit model to produce a small number of reference images (e.g., 4).
1.**Generate reference images:** Use the original 16-bit model to produce a small number of reference images (e.g., 4).
2.**Generate comparison images:** Run your method using the **same inputs and seeds** to ensure deterministic outputs. You can control the seed by setting the `generator` parameter in the diffusers pipeline.
1.**Generate comparison images:** Run your method using the **same inputs and seeds** to ensure deterministic outputs. You can control the seed by setting the `generator` parameter in the diffusers pipeline.
3.**Compute similarity:** Evaluate the similarity between your outputs and the reference images using the [LPIPS](https://arxiv.org/abs/1801.03924) metric. Use the `compute_lpips` function provided in [`tests/flux/utils.py`](flux/utils.py):
1.**Compute similarity:** Evaluate the similarity between your outputs and the reference images using the [LPIPS](https://arxiv.org/abs/1801.03924) metric. Use the `compute_lpips` function provided in [`tests/flux/utils.py`](flux/utils.py):