Added initial support for finetuning wan i2v WIP

This commit is contained in:
Jaret Burkett
2025-04-07 20:34:38 -06:00
parent 38ad5a4644
commit a8680c75eb
10 changed files with 575 additions and 286 deletions

View File

@@ -1161,8 +1161,9 @@ class CustomAdapter(torch.nn.Module):
else:
with torch.no_grad():
self.vision_encoder.eval()
self.vision_encoder.to(self.device)
clip_output = self.vision_encoder(
clip_image,
clip_image.to(self.device, dtype=get_torch_dtype(self.sd_ref().dtype)),
output_hidden_states=True,
)
if self.config.clip_layer == 'penultimate_hidden_states':