ironjr commited on
Commit
f118b07
1 Parent(s): 1ebba8d

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +3 -0
model.py CHANGED
@@ -460,6 +460,7 @@ class StreamMultiDiffusion(nn.Module):
460
  do_classifier_free_guidance=(self.guidance_scale > 1.0),
461
  negative_prompt=[negative_prompt],
462
  ) # ((1, 77, 768): cond, (1, 77, 768): uncond)
 
463
 
464
  self.state['background'].image = image
465
  self.state['background'].latent = (
@@ -468,9 +469,11 @@ class StreamMultiDiffusion(nn.Module):
468
  self.state['background'].prompt = prompt
469
  self.state['background'].negative_prompt = negative_prompt
470
  self.state['background'].embed = embed
 
471
 
472
  if self.bootstrap_steps[0] > 0:
473
  if self.white is None:
 
474
  self.white = self.encode_imgs(torch.ones(1, 3, self.height, self.width, dtype=self.dtype, device=self.device))
475
  mix_ratio = self.bootstrap_mix_ratios[:, None, None, None]
476
  self.bootstrap_latent = mix_ratio * self.white + (1.0 - mix_ratio) * self.state['background'].latent
 
460
  do_classifier_free_guidance=(self.guidance_scale > 1.0),
461
  negative_prompt=[negative_prompt],
462
  ) # ((1, 77, 768): cond, (1, 77, 768): uncond)
463
+ print('111111')
464
 
465
  self.state['background'].image = image
466
  self.state['background'].latent = (
 
469
  self.state['background'].prompt = prompt
470
  self.state['background'].negative_prompt = negative_prompt
471
  self.state['background'].embed = embed
472
+ print('222222')
473
 
474
  if self.bootstrap_steps[0] > 0:
475
  if self.white is None:
476
+ print('333333333')
477
  self.white = self.encode_imgs(torch.ones(1, 3, self.height, self.width, dtype=self.dtype, device=self.device))
478
  mix_ratio = self.bootstrap_mix_ratios[:, None, None, None]
479
  self.bootstrap_latent = mix_ratio * self.white + (1.0 - mix_ratio) * self.state['background'].latent