Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

debug

shenchenhui383ae2385939
diff --git a/opensora/models/vae/model_utils.py b/opensora/models/vae/model_utils.py
index 613c304..7f1de46 100644
--- a/opensora/models/vae/model_utils.py
+++ b/opensora/models/vae/model_utils.py
@@ -45,8 +45,17 @@ class Conv(nn.Conv3d):
padding=VALID to disable padding in nn.Conv.
"""
- def __init__(self, custom_padding:Optional[str] = None):
- super().__init__()
+ def __init__(
+ self,
+ in_channels,
+ out_channels,
+ kernel_size,
+ dtype = "bf16",
+ padding = "same",
+ use_bias=False,
+ custom_padding:Optional[str] = None,
+ ):
+ super(Conv, self).__init__(in_channels, out_channels, kernel_size, dtype=dtype, padding=padding)
self.custom_padding = custom_padding
def forward(self, x):