Spaces:
Runtime error
Runtime error
Update pixelflow/pipeline_pixelflow.py
Browse files
pixelflow/pipeline_pixelflow.py
CHANGED
|
@@ -132,7 +132,7 @@ class PixelFlowPipeline:
|
|
| 132 |
|
| 133 |
return prompt_embeds, prompt_attention_mask
|
| 134 |
|
| 135 |
-
def sample_block_noise(self, bs, ch, height, width, eps=1e-6)
|
| 136 |
gamma = self.scheduler.gamma
|
| 137 |
dist = torch.distributions.multivariate_normal.MultivariateNormal(torch.zeros(4), torch.eye(4) * (1 - gamma) + torch.ones(4, 4) * gamma + eps * torch.eye(4))
|
| 138 |
block_number = bs * ch * (height // 2) * (width // 2)
|
|
|
|
| 132 |
|
| 133 |
return prompt_embeds, prompt_attention_mask
|
| 134 |
|
| 135 |
+
def sample_block_noise(self, bs, ch, height, width, eps=1e-6):
|
| 136 |
gamma = self.scheduler.gamma
|
| 137 |
dist = torch.distributions.multivariate_normal.MultivariateNormal(torch.zeros(4), torch.eye(4) * (1 - gamma) + torch.ones(4, 4) * gamma + eps * torch.eye(4))
|
| 138 |
block_number = bs * ch * (height // 2) * (width // 2)
|