当前位置:网站首页>Assertion failed: inputs. at(2). is_ weights
Assertion failed: inputs. at(2). is_ weights
2022-07-21 19:43:00 【AI vision netqi】
Assertion failed: inputs.at(2).is_weights
install onnxsim, Two ways :
1. pip install onnxsim,
2. pip install onnx-simplifier
load onnx file ,simplify Resave after processing , The code is as follows :
import onnx
from onnxsim import simplify
onnx_model = onnx.load(output_path) # load onnx model
model_simp, check = simplify(onnx_model)
assert check, "Simplified ONNX model could not be validated"
onnx.save(model_simp, output_path)
print('finished exporting onnx')
————————————————
Copyright notice : This paper is about CSDN Blogger 「 Human high-quality Algorithm Engineer 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/qq_35037684/article/details/121248694
边栏推荐
- Find a single dog -- repeat the number twice to find a single number
- ENS阅读笔记
- Verilog语法基础HDL Bits训练 03
- Model模态框点击其他除了模态框区域不消失
- 受众分析与卸载分析全面升级,HMS Core分析服务6.6.0版本上新
- 思源同步问题:cloud object not found v2.1.0
- Résoudre l'erreur signalée: uncaught typeerror: impossible de lire les propriétés sous - jacentes (lire « installer»)
- Deep learning - (4) vgg16 image classification
- 动作活体检测能力,构建安全可靠的支付级“刷脸”体验
- Understand the differences between mongodb and MySQL
猜你喜欢
(2)达梦数据库匹配
Verilog语法基础HDL Bits训练 03
机器学习 sklearn数据集
Okaleido tiger NFT is about to log in to binance NFT platform, and the era of NFT rights and interests is about to start
动作活体检测能力,构建安全可靠的支付级“刷脸”体验
解决报错:Uncaught TypeError: Cannot read properties of undefined (reading ‘install‘)
Use jpofiler tool to analyze the cause of OOM
Machine learning sklearn dataset
Web3流量聚合平台Starfish OS,给玩家元宇宙新范式体验
The ability to detect movement in vivo and build a safe and reliable payment level "face brushing" experience
随机推荐
Attack and defense world ----- lottery
2022 the hottest free Chinese version of the whole network - free sharing of "Application Tutorial of deep learning in image processing"
Attack and defense world ----- favorite_ number
Content with element type "resultmap" must match "(constructor?, id*, result*, association*, collection*, discriminato?) “
(2) Dameng database matching
技术帖 | A40i最常见的3种网卡软件问题,为你逐一分析
Experiment 3 of wireless location technology simulation of location fingerprint location based on signal strength
NFS share
Trivy source code analysis (scanning the vulnerability information in the image)
Job regular sed
Click the model mode box and the other areas will not disappear except the mode box
笔试强训第19天
The ability to detect movement in vivo and build a safe and reliable payment level "face brushing" experience
Internal implementation principle of sort
Preparation of hemoglobin albumin nanoparticles encapsulated by Lumbrokinase albumin nanoparticles / erythrocyte membrane
Flexible array of dynamic memory management 2
2022全网最火免费中文版-《深度学习在图像处理中的应用教程》免费分享
Web3流量聚合平台Starfish OS,给玩家元宇宙新范式体验
Solve the error: uncaught typeerror: cannot read properties of undefined (reading 'install')
The ability to detect movement in vivo and build a safe and reliable payment level "face brushing" experience