From db6d6cf587d7192eaa2b2b93e7960990818b6a9d Mon Sep 17 00:00:00 2001 From: Stephen <> Date: Thu, 20 Jun 2024 14:26:03 +0800 Subject: [PATCH] fixed typo where interleaving would no longer happen --- IPAdapterPlus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPAdapterPlus.py b/IPAdapterPlus.py index ecf5349..0010124 100644 --- a/IPAdapterPlus.py +++ b/IPAdapterPlus.py @@ -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: