Allow HuMo to work with start_image
This commit is contained in:
+10
-2
@@ -1234,6 +1234,7 @@ class WanVideoSampler:
|
||||
(ati_end_percent > 0 and idx == 0 and current_step_percentage >= ati_start_percent)):
|
||||
image_cond_input = image_cond_ati.to(z)
|
||||
elif humo_image_cond is not None:
|
||||
humo_image_cond_neg_input = None
|
||||
if context_window is not None:
|
||||
image_cond_input = humo_image_cond[:, context_window].to(z)
|
||||
humo_image_cond_neg_input = humo_image_cond_neg[:, context_window].to(z)
|
||||
@@ -1241,8 +1242,15 @@ class WanVideoSampler:
|
||||
image_cond_input[:, -humo_reference_count:] = humo_image_cond[:, -humo_reference_count:]
|
||||
humo_image_cond_neg_input[:, -humo_reference_count:] = humo_image_cond_neg[:, -humo_reference_count:]
|
||||
else:
|
||||
image_cond_input = humo_image_cond.to(z)
|
||||
humo_image_cond_neg_input = humo_image_cond_neg.to(z)
|
||||
if image_cond is not None:
|
||||
image_cond_input = image_cond.to(z)
|
||||
if humo_reference_count > 0:
|
||||
image_cond_input = torch.cat([image_cond, humo_image_cond[:, -humo_reference_count:].to(z)], dim=1)
|
||||
humo_image_cond_neg_input = torch.cat([image_cond, humo_image_cond_neg[:, -humo_reference_count:].to(z)], dim=1)
|
||||
else:
|
||||
image_cond_input = humo_image_cond.to(z)
|
||||
humo_image_cond_neg_input = humo_image_cond_neg.to(z)
|
||||
|
||||
elif image_cond is not None:
|
||||
if reverse_time: # Flip the image condition
|
||||
image_cond_input = torch.cat([
|
||||
|
||||
Reference in New Issue
Block a user