Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

debug

shenchenhui59d36321c9b0
diff --git a/opensora/models/vae/model_utils.py b/opensora/models/vae/model_utils.py
index a964323..99454e8 100644
--- a/opensora/models/vae/model_utils.py
+++ b/opensora/models/vae/model_utils.py
@@ -77,7 +77,11 @@ import torch
class DiagonalGaussianDistribution(object):
- def __init__(self, parameters, deterministic=False):
+ def __init__(
+ self,
+ parameters,
+ deterministic=False,
+ ):
self.parameters = parameters
self.mean, self.logvar = torch.chunk(parameters, 2, dim=1) # SCH: channels dim
self.logvar = torch.clamp(self.logvar, -30.0, 20.0)