fix(backend): use consistent idx_offset=1 for all Kontext images

Changes from per-image index offsets to a consistent value of 1 for
all reference images, matching the ComfyUI implementation
This commit is contained in:
psychedelicious
2025-08-04 21:07:34 +10:00
parent bb15e5cf06
commit 44a7dfd486

View File

@@ -174,7 +174,7 @@ class KontextExtension:
batch_size=batch_size,
device=self._device,
dtype=self._dtype,
idx_offset=idx + 1, # Each image gets a unique offset
idx_offset=1, # All reference images use index=1 (matching ComfyUI implementation)
h_offset=h_offset,
w_offset=w_offset,
)