fixed typo where interleaving would no longer happen

This commit is contained in:
Stephen
2024-06-20 14:26:03 +08:00
parent b7be2be24d
commit db6d6cf587
+1 -1
View File
@@ -1536,7 +1536,7 @@ class IPAdapterWeights:
min_weight = min(weights)
max_weight = max(weights)
# Invert the weights relative to their own range
mew_weights = [max_weight - (w - min_weight) for w in weights]
mew_weights = weights + [max_weight - (w - min_weight) for w in weights]
mew_weights = mew_weights * (image_1.shape[0] // 2)
if image.shape[0] % 2: