Spaces:
Sleeping
Sleeping
without ema
Browse files- config.yaml +1 -1
- ldm/models/diffusion/ddpm.py +2 -0
config.yaml
CHANGED
@@ -18,7 +18,7 @@ model:
|
|
18 |
scale_factor: 0.18215
|
19 |
only_mid_control: False
|
20 |
sd_locked: True
|
21 |
-
use_ema: True #False #True #False
|
22 |
|
23 |
control_stage_config:
|
24 |
target: cldm.cldm.ControlNet
|
|
|
18 |
scale_factor: 0.18215
|
19 |
only_mid_control: False
|
20 |
sd_locked: True
|
21 |
+
use_ema: False #True #False #True #False
|
22 |
|
23 |
control_stage_config:
|
24 |
target: cldm.cldm.ControlNet
|
ldm/models/diffusion/ddpm.py
CHANGED
@@ -626,7 +626,9 @@ class LatentDiffusion(DDPM):
|
|
626 |
self.scale_factor = scale_factor
|
627 |
else:
|
628 |
self.register_buffer('scale_factor', torch.tensor(scale_factor))
|
|
|
629 |
self.instantiate_first_stage(first_stage_config)
|
|
|
630 |
self.instantiate_cond_stage(cond_stage_config)
|
631 |
self.cond_stage_forward = cond_stage_forward
|
632 |
self.clip_denoised = False
|
|
|
626 |
self.scale_factor = scale_factor
|
627 |
else:
|
628 |
self.register_buffer('scale_factor', torch.tensor(scale_factor))
|
629 |
+
print("instantiate first stage model")
|
630 |
self.instantiate_first_stage(first_stage_config)
|
631 |
+
print("instantiate cond stage model")
|
632 |
self.instantiate_cond_stage(cond_stage_config)
|
633 |
self.cond_stage_forward = cond_stage_forward
|
634 |
self.clip_denoised = False
|