Open-Sora: Democratizing Efficient Video Production for All
Python
debug
Shen-Chenhuic9fac9fa2bff
diff --git a/opensora/models/vae/vae_3d.py b/opensora/models/vae/vae_3d.pyindex 9588f7d..47a6cd9 100644--- a/opensora/models/vae/vae_3d.py+++ b/opensora/models/vae/vae_3d.py@@ -54,10 +54,10 @@ class ResBlock(nn.Module):device, dtype = x.device, x.dtypeinput_dim = x.shape[1]residual = x- x = self.norm1(x).to(dtype)+ x = self.norm1(x).to(device,dtype)x = self.activate(x)x = self.conv1(x).to(dtype)- x = self.norm2(x).to(dtype)+ x = self.norm2(x).to(device, dtype)x = self.activate(x)x = self.conv2(x).to(dtype)if input_dim != self.filters: # TODO: what does it do here