TensorRT_yolo3 icon indicating copy to clipboard operation
TensorRT_yolo3 copied to clipboard

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Open cxm1995 opened this issue 6 years ago • 2 comments

Layer of type yolo not supported, skipping ONNX node generation. Layer of type yolo not supported, skipping ONNX node generation. Layer of type yolo not supported, skipping ONNX node generation. Traceback (most recent call last): File "yolov3_to_onnx.py", line 672, in main() File "yolov3_to_onnx.py", line 660, in main verbose=True) File "yolov3_to_onnx.py", line 350, in build_onnx_graph conv_params) File "yolov3_to_onnx.py", line 212, in load_conv_weights conv_params, 'bn', 'bias') File "yolov3_to_onnx.py", line 261, in _create_param_tensors param_name, TensorProto.FLOAT, param_data_shape, param_data) File "/usr/local/lib/python2.7/dist-packages/onnx/helper.py", line 173, in make_tensor getattr(tensor, field).extend(vals) File "/usr/lib/python2.7/dist-packages/google/protobuf/internal/containers.py", line 123, in extend if not elem_seq: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

cxm1995 avatar Apr 11 '19 06:04 cxm1995

求助一下您

cxm1995 avatar Apr 11 '19 06:04 cxm1995

can u help me

cxm1995 avatar Apr 26 '19 08:04 cxm1995