mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-05-01 03:31:35 +00:00
Add extra detachments just to be sure on qiep
This commit is contained in:
@@ -290,11 +290,11 @@ class QwenImageEditPlusModel(QwenImageModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
noise_pred = self.transformer(
|
noise_pred = self.transformer(
|
||||||
hidden_states=latent_model_input.to(self.device_torch, self.torch_dtype),
|
hidden_states=latent_model_input.to(self.device_torch, self.torch_dtype).detach(),
|
||||||
timestep=timestep / 1000,
|
timestep=(timestep / 1000).detach(),
|
||||||
guidance=None,
|
guidance=None,
|
||||||
encoder_hidden_states=enc_hs,
|
encoder_hidden_states=enc_hs.detach(),
|
||||||
encoder_hidden_states_mask=prompt_embeds_mask,
|
encoder_hidden_states_mask=prompt_embeds_mask.detach(),
|
||||||
img_shapes=img_shapes,
|
img_shapes=img_shapes,
|
||||||
txt_seq_lens=txt_seq_lens,
|
txt_seq_lens=txt_seq_lens,
|
||||||
return_dict=False,
|
return_dict=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user