6 Star 7 Fork 7

DeepSpark/DeepSparkInference

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
majorli6 提交于 2024-05-29 16:10 . format markdown docs

MobileNetV3_Small

Description

MobileNetV3_Small is a lightweight convolutional neural network architecture designed for efficient mobile and embedded devices. It is part of the MobileNet family, renowned for its compact size and high performance, making it ideal for applications with limited computational resources.The key focus of MobileNetV3_Small is to achieve a balance between model size, speed, and accuracy.

Setup

Install

pip3 install onnx
pip3 install tqdm

Download

Pretrained model: https://download.pytorch.org/models/mobilenet_v3_small-047dcff4.pth

Dataset: https://www.image-net.org/download.php to download the validation dataset.

Model Conversion

python3 export.py --weight mobilenet_v3_small-047dcff4.pth --output mobilenetv3_small.onnx

Inference

export DATASETS_DIR=/Path/to/imagenet_val/

FP16

# Accuracy
bash scripts/infer_mobilenetv3_small_fp16_accuracy.sh
# Performance
bash scripts/infer_mobilenetv3_small_fp16_performance.sh

Results

Model BatchSize Precision FPS Top-1(%) Top-5(%)
MobileNetV3_Small 32 FP16 6837.86 67.612 87.404
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/deep-spark/deepsparkinference.git
git@gitee.com:deep-spark/deepsparkinference.git
deep-spark
deepsparkinference
DeepSparkInference
master

搜索帮助

Cb406eda 1850385 E526c682 1850385