Spaces:
Sleeping
Sleeping
Update gligen/ldm/models/diffusion/plms.py
Browse files
gligen/ldm/models/diffusion/plms.py
CHANGED
@@ -179,12 +179,12 @@ class PLMSSampler(object):
|
|
179 |
elif index1 < 20:
|
180 |
loss_scale = 3
|
181 |
max_iter = 1
|
182 |
-
else:
|
183 |
-
|
184 |
-
|
185 |
|
186 |
loss_threshold = 0.1
|
187 |
-
max_index =
|
188 |
x = deepcopy(input["x"])
|
189 |
iteration = 0
|
190 |
loss = torch.tensor(10000)
|
|
|
179 |
elif index1 < 20:
|
180 |
loss_scale = 3
|
181 |
max_iter = 1
|
182 |
+
# else:
|
183 |
+
# loss_scale = 1
|
184 |
+
# max_iter = 1
|
185 |
|
186 |
loss_threshold = 0.1
|
187 |
+
max_index = 20
|
188 |
x = deepcopy(input["x"])
|
189 |
iteration = 0
|
190 |
loss = torch.tensor(10000)
|