应该是上采样 tensor_proto.raw_data().empty() || !tensor_proto.float_data().empty() || !tensor_proto.double_data().empty() || !tensor_proto.int64_data().empty() 报错代码: # -*- coding: utf-8 -*- import onnx import os import time import cv2 import numpy as np net = cv2.dnn.readNetFromONNX(r'onnx_model/0.onnx')