赞
踩
基本思想:适配mmpose模型,记录一下流水帐,环境配置和模型来自,请查看参考链接。
链接: https://pan.baidu.com/s/1IkiwuZf1anyKX1sZkYmD1g?pwd=i51s 提取码: i51s
一、转模型
- (base) root@davinci-mini:~/sxj731533730# atc --model=end2end.onnx --framework=5 --output=end2end --input_format=NCHW --input_shape="input:1,3,256,256" --log=error --soc_version=Ascend310B1
- ATC start working now, please wait for a moment.
- ...
- ATC run success, welcome to the next use.
python代码
-
- import time
- import cv2
- import numpy as np
- from ais_bench.infer.interface import InferSession
-
- model_path = "end2end.om"
- IMG_PATH = "ca110.jpeg"
-
-
-
-
- def bbox_xywh2cs(bbox, aspect_ratio, padding=1., pixel_std=200.):
- """Transform the bbox format from (x,y,w,h) into (center, scale)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。