Spaces:
Runtime error
Runtime error
Update model.py
Browse files172 unmodified lines173174175176176177178179180261 unmodified lines442443444445446447448449172 unmodified lines self.latent_width = int(width // self.pipe.vae_scale_factor)
# For bootstrapping. self.white = self.encode_imgs(torch.ones(1, 3, height, width, dtype=self.dtype, device=self.device)) # self.white = self.encode_imgs(torch.ones(1, 3, height, width, dtype=self.dtype, device=self.device)) self.white = None
# StreamDiffusion setting. self.t_list = t_index_list261 unmodified lines self.state['background'].embed = embed
if self.bootstrap_steps[0] > 0: if self.white is None: self.white = self.encode_imgs(torch.ones(1, 3, self.height, self.width, dtype=self.dtype, device=self.device)) mix_ratio = self.bootstrap_mix_ratios[:, None, None, None] self.bootstrap_latent = mix_ratio * self.white + (1.0 - mix_ratio) * self.state['background'].latent
model.py+4-1