Open-Sora: Democratizing Efficient Video Production for All
Python
debug
shenchenhuif1a6f7523eb0
diff --git a/opensora/models/vae/vae_3d.py b/opensora/models/vae/vae_3d.pyindex a789506..97d4ef1 100644--- a/opensora/models/vae/vae_3d.py+++ b/opensora/models/vae/vae_3d.py@@ -53,15 +53,15 @@ class ResBlock(nn.Module):def forward(self, x):- input_dim = x.shape[-1]+ input_dim = x.shape[1]residual = xx = self.norm1(x)x = self.activate(x)x = self.conv1(x)x = self.norm2(x)x = self.activate(x)- x = self.conv2(x)- if input_dim != self.filters:+ x = self.conv2(x)+ if input_dim != self.filters: # TODO: what does it do hereresidual = self.conv3(residual)return x + residual