ONNX Model Zoo

NimaBoscarino/efficientformer-l3-300

By NimaBoscarino · ↓ 5 · ♥ 1 · Updated 2022-07-18

What's in this repo

This page lists the files in NimaBoscarino/efficientformer-l3-300, including efficientformer_l3.onnx.

  • 1 ONNX models (.onnx files)
  • 5 files, including 1 .md, 1 .mlmodel, 1 .onnx, 1 .pth
  • Last updated 2022-07-18

ONNX files

File Size Download
efficientformer_l3.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

EfficientFormer-L3

Table of Contents

Model Details

EfficientFormer-L3, developed by Snap Research, is one of three EfficientFormer models. The EfficientFormer models were released as part of an effort to prove that properly designed transformers can reach extremely low latency on mobile devices while maintaining high performance.

This checkpoint of EfficientFormer-L3 was trained for 300 epochs.

  • Developed by: Yanyu Li, Geng Yuan, Yang Wen, Eric Hu, Georgios Evangelidis, Sergey Tulyakov, Yanzhi Wang, Jian Ren
  • Language(s): English
  • License: This model is licensed under the apache-2.0 license
  • Resources for more information:

How to Get Started with the Model

Use the code below to get started with the model.

# A nice code snippet here that describes how to use the model...

Uses

Direct Use

This model can be used for image classification and semantic segmentation. On mobile devices (the model was tested on iPhone 12), the CoreML checkpoints will perform these tasks with low latency.

Limitations and Biases

Though most designs in EfficientFormer are general-purposed, e.g., dimension- consistent design and 4D block with CONV-BN fusion, the actual speed of EfficientFormer may vary on other platforms. For instance, if GeLU is not well supported while HardSwish is efficiently implemented on specific hardware and compiler, the operator may need to be modified accordingly. The proposed latency-driven slimming is simple and fast. However, better results may be achieved if search cost is not a concern and an enumeration-based brute search is performed.

Since the model was trained on Imagenet-1K, the biases embedded in that dataset will be reflected in the EfficientFormer models.

Training

Training Data

This model was trained on ImageNet-1K.

See the data card for additional information.

Training Procedure
  • Parameters: 31.3 M
  • GMACs: 3.9
  • Train. Epochs: 300

Trained on a cluster with NVIDIA A100 and V100 GPUs.

Evaluation Results

Top-1 Accuracy: 82.4% on ImageNet 10K Latency: 3.0 ms

Citation Information

@article{li2022efficientformer,
  title={EfficientFormer: Vision Transformers at MobileNet Speed},
  author={Li, Yanyu and Yuan, Geng and Wen, Yang and Hu, Eric and Evangelidis, Georgios and Tulyakov, Sergey and Wang, Yanzhi and Ren, Jian},
  journal={arXiv preprint arXiv:2206.01191},
  year={2022}
}

Model info

timm coreml onnx mobile vison image-classification en dataset:imagenet-1k arxiv:2206.01191 license:apache-2.0 region:us
↓ 5 ♥ 1

Created: 2022-07-18

Updated: 2022-07-18

View on Hugging Face

Files (5)

.gitattributes
README.md
efficientformer_l3.mlmodel
efficientformer_l3.onnx ONNX
efficientformer_l3_300d.pth

Related models