Giter VIP home page Giter VIP logo

Comments (10)

tano297 avatar tano297 commented on June 19, 2024 2

We've experienced this too, it is because of a bug in the indexing operation when exporting to onnx. Since the model uses all channels, this is virtually a no op, so it works anyway

from lidar-bonnetal.

akouri-dd avatar akouri-dd commented on June 19, 2024 1

FWIW I opened a fork that contains code to export to ONNX: https://github.com/andrewkouri/lidar-bonnetal/blob/master/train/tasks/semantic/create_onnx.py

Unfortunately I am still having problems opening the model in TensorRT because it is exported with an "ir_version" that is too new... will update if I figure out how to deal with it.

from lidar-bonnetal.

tano297 avatar tano297 commented on June 19, 2024

@Chen-Xieyuanli can you comment on this?

from lidar-bonnetal.

Chen-Xieyuanli avatar Chen-Xieyuanli commented on June 19, 2024

Hi @leo94-chen, here is my hack, which is not well-programmed, but you could take it as an example.

https://gist.github.com/Chen-Xieyuanli/980cc0a2c9b664b9cc279b19d61aa898#file-make_onnx-py

from lidar-bonnetal.

balajiravichandiran avatar balajiravichandiran commented on June 19, 2024

FWIW I opened a fork that contains code to export to ONNX: https://github.com/andrewkouri/lidar-bonnetal/blob/master/train/tasks/semantic/create_onnx.py

Unfortunately I am still having problems opening the model in TensorRT because it is exported with an "ir_version" that is too new... will update if I figure out how to deal with it.

This script works for me. Able to inference tensorRt without problem.

I have tried with cuda 10.1, tensorrt.5.1 and cuda 10.2, tensorrt 6.0

Sorry forget to mention. I modified backbone. https://github.com/PRBonn/lidar-bonnetal/blob/master/train/backbones/darknet.py
commented line 159.
#x = x[:, self.input_idxs]

If i dont comment i got something aten error

from lidar-bonnetal.

caoyifeng001 avatar caoyifeng001 commented on June 19, 2024

@akouri-dd @balajiravichandiran
hi,when i create onnx file using this script ,i meet a problem.
RuntimeError: ONNX export failed: Couldn't export operator aten::index

from lidar-bonnetal.

balajiravichandiran avatar balajiravichandiran commented on June 19, 2024

@caoyifeng001 you need to comment the line 159 in below file.

I modified backbone. https://github.com/PRBonn/lidar-bonnetal/blob/master/train/backbones/darknet.py
commented line 159.
#x = x[:, self.input_idxs]

from lidar-bonnetal.

caoyifeng001 avatar caoyifeng001 commented on June 19, 2024

@balajiravichandiran
thank you, I solved my problem, but I don't understand why this works.

from lidar-bonnetal.

jbehley avatar jbehley commented on June 19, 2024

I think it seems resolved. If you still have questions, please reopen the issue or comment on this issue.

from lidar-bonnetal.

aprilliuwei avatar aprilliuwei commented on June 19, 2024

I can successfully run this script file, but no. Onnx file is generated. Who can help me?Here are the results of my run,Thanks.
1
112

from lidar-bonnetal.

Related Issues (20)

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.