ShoufaChen commited on
Commit
1718638
·
verified ·
1 Parent(s): 137645c

Update pixelflow/pipeline_pixelflow.py

Browse files
Files changed (1) hide show
  1. pixelflow/pipeline_pixelflow.py +1 -1
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)