Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

[fix] support stdit1 training

zhengzangw20d1584a1c62
diff --git a/opensora/models/stdit/stdit.py b/opensora/models/stdit/stdit.py
index 0bb3d5d..428ad26 100644
--- a/opensora/models/stdit/stdit.py
+++ b/opensora/models/stdit/stdit.py
@@ -255,7 +255,7 @@ class STDiT(nn.Module):
else:
self.sp_rank = None
- def forward(self, x, timestep, y, mask=None, x_mask=None):
+ def forward(self, x, timestep, y, mask=None, x_mask=None, **kwargs):
"""
Forward pass of STDiT.
Args: