From 2255ae76602d5b122fa04d19bda650fa40899c02 Mon Sep 17 00:00:00 2001 From: matt3o Date: Mon, 20 Nov 2023 20:23:57 +0100 Subject: [PATCH] fix compatibility with deep shrink --- IPAdapterPlus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPAdapterPlus.py b/IPAdapterPlus.py index 29272c4..b37f25a 100644 --- a/IPAdapterPlus.py +++ b/IPAdapterPlus.py @@ -278,7 +278,7 @@ class CrossAttentionPatch: if mask is not None: # TODO: needs testing - for rate in [1, 2, 4, 8]: + for rate in [1, 2, 4, 8, 16]: mask_h = -(-lh//rate) # fancy ceil mask_w = -(-lw//rate)