python开发者
Sophon也封装了python API以便python开发者快速上手
安装Sophon python3 library
** 安装sophon python库 **
SplitModel# pip3 install --user python3/x86/sophon-1.1.3-py3-none-any.whl
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing ./python3/x86/sophon-1.1.3-py3-none-any.whl
Installing collected packages: sophon
Successfully installed sophon-1.1.3下载yolov3模型
** Sophon将下载转换模型封装成Sophon utils python库 **
# cd SplitModel/bin/x86
# ./get_bmodel -h
usage: get_bmodel [-h] [--save_path SAVE_PATH] arg
Download test data, or download and convert models.
positional arguments:
arg Options: model_name, 'model_list', 'test_data', 'all'
optional arguments:
-h, --help show this help message and exit
--save_path SAVE_PATH
Save sophon test model and test data.
** 下载Yolov3测试数据和模型,编译模型测试精度 **
./get_bmodel test_data --save_path ${run_yolov3_caffe}/tmp
./get_bmodel yolov3 --save_path ${run_yolov3_caffe}/tmp使用Sophon complier编译模型
加载Sophon bmodel
数据预处理
执行Sophon Model推理
数据后处理
实例演示
Last updated
Was this helpful?