Spaces:
Runtime error
Runtime error
Update model.py
Browse files172 unmodified lines173174175176177178179261 unmodified lines441442443444445446172 unmodified linesself.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))# StreamDiffusion setting.self.t_list = t_index_list261 unmodified linesself.state['background'].embed = embedif self.bootstrap_steps[0] > 0:mix_ratio = self.bootstrap_mix_ratios[:, None, None, None]self.bootstrap_latent = mix_ratio * self.white + (1.0 - mix_ratio) * self.state['background'].latent172 unmodified lines173174175176177178179180261 unmodified lines442443444445446447448449172 unmodified linesself.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 = None# StreamDiffusion setting.self.t_list = t_index_list261 unmodified linesself.state['background'].embed = embedif 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