6 Star 7 Fork 7

DeepSpark/DeepSparkInference

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

ShuffleNetV2_x1_0

Description

ShuffleNet V2_x1_0 is an efficient convolutional neural network (CNN) architecture that emphasizes a balance between computational efficiency and accuracy, particularly suited for deployment on mobile and embedded devices. The model refines the ShuffleNet series by introducing structural innovations that enhance feature reuse and reduce redundancy, all while maintaining simplicity and performance.

Setup

Install

pip3 install onnx
pip3 install tqdm

Download

Pretrained model: https://download.pytorch.org/models/shufflenetv2_x1-5666bf0f80.pth

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

Model Conversion

python3 export.py --weight shufflenetv2_x1-5666bf0f80.pth --output shufflenetv2_x1_0.onnx

Inference

export DATASETS_DIR=/Path/to/imagenet_val/

FP16

# Accuracy
bash scripts/infer_shufflenetv2_x1_0_fp16_accuracy.sh
# Performance
bash scripts/infer_shufflenetv2_x1_0_fp16_performance.sh

Results

Model BatchSize Precision FPS Top-1(%) Top-5(%)
ShuffleNetV2_x1_0 32 FP16 8232.980 69.308 88.302
马建仓 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