Skip to content

JohnNesbit/CoAtNet-Pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

CoAtNet-Pytorch

Pytorch Implementation of CoAtNet, the SOTA image classification model described in https://arxiv.org/abs/2106.04803.

CoatNet.py contains the coatnet class and accompanying initialization functions for each size of coatnet.

translation equivariant weight

The translation equivariant weight is produced within the code by taking advantage of matrix multiplication's inherent order preserving nature.

image

With the equation pictured above for finding the index of the respective equivariant weight for an index of the K*Q number being i-j, the entirety of the indexing for this problem can be solved with a diagonally similar matrix of equivarant weight index. For example, if the equivarant weight was (1, 2, 3, 4, 5, 6, 7), the respective additive for K*Q would be:

image

This result may seem odd, but really is not when one looks at the respective index for itself:

image

About

Pytorch Implementation of CoAtNet, the SOTA image classification model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages