Spaces:
Runtime error
Runtime error
Update gligen/ldm/models/diffusion/plms.py
Browse files
gligen/ldm/models/diffusion/plms.py
CHANGED
@@ -171,11 +171,11 @@ class PLMSSampler(object):
|
|
171 |
def update_loss_LoCo(self, input,index1, index, ts,type_loss='self_accross'):
|
172 |
|
173 |
if index1 < 10:
|
174 |
-
loss_scale =
|
175 |
-
max_iter =
|
176 |
elif index1 < 20:
|
177 |
-
loss_scale =
|
178 |
-
max_iter =
|
179 |
else:
|
180 |
loss_scale = 1
|
181 |
max_iter = 1
|
|
|
171 |
def update_loss_LoCo(self, input,index1, index, ts,type_loss='self_accross'):
|
172 |
|
173 |
if index1 < 10:
|
174 |
+
loss_scale = 8
|
175 |
+
max_iter = 5
|
176 |
elif index1 < 20:
|
177 |
+
loss_scale = 5
|
178 |
+
max_iter = 5
|
179 |
else:
|
180 |
loss_scale = 1
|
181 |
max_iter = 1
|