LongCat-Image edit (#13003)

This commit is contained in:
Talmaj
2026-03-22 04:51:05 +01:00
committed by GitHub
parent ebf6b52e32
commit d49420b3c7
5 changed files with 36 additions and 10 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ class Flux(nn.Module):
h = max(h, ref.shape[-2] + h_offset)
w = max(w, ref.shape[-1] + w_offset)
kontext, kontext_ids = self.process_img(ref, index=index, h_offset=h_offset, w_offset=w_offset)
kontext, kontext_ids = self.process_img(ref, index=index, h_offset=h_offset, w_offset=w_offset, transformer_options=transformer_options)
img = torch.cat([img, kontext], dim=1)
img_ids = torch.cat([img_ids, kontext_ids], dim=1)
ref_num_tokens.append(kontext.shape[1])