AttentionPoolLatent reference? #2436
-
Hello all, Is there any reference for AttentionPoolLatent (https://github.com/huggingface/pytorch-image-models/blob/main/timm/layers/attention_pool.py#L12). Which paper is this attention pooling from? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@billpsomas That impl is compatible with the attention pooling in SigLIP, but I had the layer coded up before that paper, based on some previous attention pooling ideas that were out there. I think maybe some of it was related to Perceiver but I forget exactly, the concept has been 'out there' for a while. When SigLIP was released, I tweaked it to be compatible, it supports some other options. The '2d' variants in attention_pool_2d were based on the OpenAI CLIP ResNet attention pooling, but again had some additional options that I added. |
Beta Was this translation helpful? Give feedback.
@billpsomas That impl is compatible with the attention pooling in SigLIP, but I had the layer coded up before that paper, based on some previous attention pooling ideas that were out there. I think maybe some of it was related to Perceiver but I forget exactly, the concept has been 'out there' for a while. When SigLIP was released, I tweaked it to be compatible, it supports some other options.
The '2d' variants in attention_pool_2d were based on the OpenAI CLIP ResNet attention pooling, but again had some additional options that I added.