Spaces:
Sleeping
Sleeping
Update gligen/ldm/models/diffusion/plms.py
Browse files
gligen/ldm/models/diffusion/plms.py
CHANGED
@@ -109,7 +109,9 @@ class PLMSSampler(object):
|
|
109 |
# elif loss_type=='CAR':
|
110 |
# x = self.update_loss_only_cross( input,i, index, ts )
|
111 |
# elif loss_type=='LoCo':
|
112 |
-
|
|
|
|
|
113 |
input["x"] = x
|
114 |
img, pred_x0, e_t = self.p_sample_plms(input, ts, index=index, uc=uc, guidance_scale=guidance_scale, old_eps=old_eps, t_next=ts_next)
|
115 |
input["x"] = img
|
|
|
109 |
# elif loss_type=='CAR':
|
110 |
# x = self.update_loss_only_cross( input,i, index, ts )
|
111 |
# elif loss_type=='LoCo':
|
112 |
+
|
113 |
+
x = self.update_loss_only_cross( input,i, index, ts )
|
114 |
+
# x = self.update_loss_LoCo( input,i, index, ts, )
|
115 |
input["x"] = x
|
116 |
img, pred_x0, e_t = self.p_sample_plms(input, ts, index=index, uc=uc, guidance_scale=guidance_scale, old_eps=old_eps, t_next=ts_next)
|
117 |
input["x"] = img
|