ameerazam08 commited on
Commit
731ab1a
1 Parent(s): c4a9744

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -70,8 +70,8 @@ class Upscale_CaseCade:
70
  cnet = self.models.controlnet(effnet_latents_up)
71
  cnet_uncond = cnet
72
  cnet_input = torch.nn.functional.interpolate(images, scale_factor=scale_fator, mode="nearest")
73
- cnet, cnet_input = self.core.get_cnet(batch, self.models, self.extras)
74
- cnet_uncond = cnet
75
  height, width = int(cnet[0].size(-2)*32*4/3), int(cnet[0].size(-1)*32*4/3)
76
  stage_c_latent_shape, stage_b_latent_shape = calculate_latent_sizes(height, width, batch_size=batch_size)
77
  # PREPARE CONDITIONS
 
70
  cnet = self.models.controlnet(effnet_latents_up)
71
  cnet_uncond = cnet
72
  cnet_input = torch.nn.functional.interpolate(images, scale_factor=scale_fator, mode="nearest")
73
+ # cnet, cnet_input = self.core.get_cnet(batch, self.models, self.extras)
74
+ # cnet_uncond = cnet
75
  height, width = int(cnet[0].size(-2)*32*4/3), int(cnet[0].size(-1)*32*4/3)
76
  stage_c_latent_shape, stage_b_latent_shape = calculate_latent_sizes(height, width, batch_size=batch_size)
77
  # PREPARE CONDITIONS