Skip to content

lucasjinreal/efficientformers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EfficientFormers

EfficientFormers is a library which contains some SOTA efficient transformer architectures. Be note that, effcientformers only index light-weighted and fast transformer models.

Currently supported models:

will add:

Please star and fork! Contribution are very welcomed.

Install

pip install efficientformers

Usage

from efficientformers.cv.efficientformer import efficientformer_l1
import torch


x = torch.randn([1, 3, 224, 224])
a = efficientformer_l1(num_classes=10, distillation=False)
o = a(x)

print(o.shape)

# EdgeVit

from efficientformers.cv.edgevit import edgevit_xs

model = edgevit_xs()