efficientformers

Collection of efficientformers


Keywords
deep, learning, neural, network, builder, backbone, efficient, efficient-transformer, efficienttransformer, object-detection, transformer
License
Apache-2.0
Install
pip install efficientformers==0.1.1

Documentation

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()