Git Product home page Git Product logo

tensorrt_yolo3's People

Contributors

cw-zero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tensorrt_yolo3's Issues

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

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()

python yolov3_to_onnx.py for error

python yolov3_to_onnx.py
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.
graph YOLOv3-608 (
%000_net[FLOAT, 64x3x608x608]
) initializers (
%001_convolutional_bn_scale[FLOAT, 32]
%001_convolutional_bn_bias[FLOAT, 32]

我用你的项目无法得到你数据中的加速比

系统环境ubuntu 16.04
tensorrt版本 5.1
pytorch版本 1.1.0
onnx 版本 1.3.0

硬件1080ti i7 8700k

输入图像608x608

对比主干的时间, 几乎没有差别。

你的时间对比是怎么得来的?
我看你代码中,并没有考虑到预处理的时间

it

The sample is the same as the official sample. Have you ever run this sample? I try with onnx=1.2.1 1.2.2 1.4.1. But all of them raise an error. "layer of type yolo not supported,skipping onnx node generation"

请教一下关于Upsample问题

你好,使用你的这个工程的方式helper.make_node(
'Upsample',
mode='nearest',
scales=[1.0, 1.0, 2, 2],
inputs=inputs,
outputs=[layer_name],
name=layer_name,
)
可以得到
onnx::Upsample[mode = 'nearest', scales = [1, 1, 2, 2]]....
但是如果使用:nn.Upsample(scale_factor=2, mode = 'nearest'),这种方式,之后用torch.onnx.export导出方式,只能得到:
onnx::Upsample[mode="nearest"].....
我该如何用导出方式得到还有 scales 属性的onnx::Upsample呢?

convert weights to onnx error!

Hi,
first of all, thanks for your great work and share the code.
When I try to run "yolov3_to_onnx.py",
in the beginning, it told me "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
graph YOLOv3-608(%000_net[FLOAT, 64x3x608x608])......"
when the script go into the end, it told me"check_model(model.SerializeToString()
onnx.onnx_cpp2py_export.checker.ValidationError: Node (086_upsample) has input size 1 not in range [min=2, max=2]."

have you ever meet this issue?

TensorRT

你好,请问项目中TensorRT版本用的是4.0还是5.0?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.