Skip to content

Commit 5b4d511

Browse files
committed
nonetype error fixed
1 parent 6395edc commit 5b4d511

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/models/wan/autoencoder_kl_wan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def __init__(
353353

354354
def initialize_cache(self, batch_size, height, width, dtype):
355355
cache = {}
356-
if hasattr(self, "time_conv"):
356+
if hasattr(self, "time_conv") and self.time_conv is not None:
357357
h_curr, w_curr = height, width
358358
cache["time_conv"] = self.time_conv.initialize_cache(
359359
batch_size, h_curr, w_curr, dtype

0 commit comments

Comments
 (0)