Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index out of range #225

Open
WeisonWEileen opened this issue Jun 18, 2024 · 3 comments
Open

index out of range #225

WeisonWEileen opened this issue Jun 18, 2024 · 3 comments

Comments

@WeisonWEileen
Copy link

image

when I input my onnx file to build.py, it turn out that that is a index out error. Could you please help me how to debug?

@WeisonWEileen WeisonWEileen changed the title index out of ranbg index out of range Jun 18, 2024
@triple-Mu
Copy link
Owner

image

when I input my onnx file to build.py, it turn out that that is a index out error. Could you please help me how to debug?

The process is like this:

  1. Using export_det.py for exporting onnx.
  2. Using build.py build engine by the exported onnx
  3. Using infer_det.py for object detection.

It seems that your onnx does not came from export_det.py.

@WeisonWEileen
Copy link
Author

WeisonWEileen commented Jun 19, 2024

Thanks,you are true. And there are problems puzzle me:

  1. Does these red error matters, which comes when I export onnx from pt?
  2. when I run /bin/trtexec to export engine from onnx, it cost me almost 10 min, are there anyway to accelarate?
    my platform is jetson orin nx 16GB
    image

@triple-Mu
Copy link
Owner

triple-Mu commented Jul 1, 2024

Thanks,you are true. And there are problems puzzle me:

  1. Does these red error matters, which comes when I export onnx from pt?
  2. when I run /bin/trtexec to export engine from onnx, it cost me almost 10 min, are there anyway to accelarate?
    my platform is jetson orin nx 16GB
    image

The red error comes from onnxruntime. It doesn't make any sense.
Do not use --fp16 flag.
If you want to go further, you can try build-tensorrt-by-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants