This commit is contained in:
lllyasviel
2024-01-27 18:53:24 -08:00
parent a4d743e5f8
commit 20f1fb6c0b
2 changed files with 16 additions and 4 deletions

View File

@@ -38,7 +38,12 @@ def cond_from_a1111_to_patched_ldm_weighted(cond, weights):
for i, w in cond_pre:
current_indices.append(i)
current_weight = w
feed = cond[current_indices]
if hasattr(cond, 'advanced_indexing'):
feed = cond.advanced_indexing(current_indices)
else:
feed = cond[current_indices]
h = cond_from_a1111_to_patched_ldm(feed)
h[0]['strength'] = current_weight
results += h