Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/diffusers/pipelines/wan/pipeline_wan_vace.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,7 @@ def prepare_video_latents(
latents = retrieve_latents(self.vae.encode(video), generator, sample_mode="argmax").unbind(0)
latents = ((latents.float() - latents_mean) * latents_std).to(vae_dtype)
else:
mask = mask.to(dtype=vae_dtype)
mask = torch.where(mask > 0.5, 1.0, 0.0)
mask = torch.where(mask > 0.5, 1.0, 0.0).to(dtype=vae_dtype)
inactive = video * (1 - mask)
reactive = video * mask
inactive = retrieve_latents(self.vae.encode(inactive), generator, sample_mode="argmax")
Expand Down
6 changes: 0 additions & 6 deletions tests/lora/test_lora_layers_wanvace.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import unittest

import numpy as np
import pytest
import safetensors.torch
import torch
from PIL import Image
Expand Down Expand Up @@ -160,11 +159,6 @@ def test_simple_inference_with_text_lora_fused(self):
def test_simple_inference_with_text_lora_save_load(self):
pass

@pytest.mark.xfail(
condition=True,
reason="RuntimeError: Input type (float) and bias type (c10::BFloat16) should be the same",
strict=True,
)
def test_layerwise_casting_inference_denoiser(self):
super().test_layerwise_casting_inference_denoiser()

Expand Down