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

fix: update trt api #1472

Merged
merged 3 commits into from
Aug 10, 2022
Merged

fix: update trt api #1472

merged 3 commits into from
Aug 10, 2022

Conversation

wep21
Copy link
Contributor

@wep21 wep21 commented Jul 30, 2022

Description

closes #1436

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@wep21 wep21 requested review from miursh, yukke42 and yukkysaito and removed request for yukke42 July 30, 2022 08:49
@wep21 wep21 added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Jul 30, 2022
@codecov
Copy link

codecov bot commented Jul 30, 2022

Codecov Report

Merging #1472 (0bc7e5b) into main (f8b090b) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1472      +/-   ##
==========================================
- Coverage   10.73%   10.71%   -0.03%     
==========================================
  Files        1115     1115              
  Lines       78831    78987     +156     
  Branches    18561    18561              
==========================================
  Hits         8464     8464              
- Misses      61507    61663     +156     
  Partials     8860     8860              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.72% <0.00%> (ø) Carriedforward from f8b090b

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...idar_apollo_instance_segmentation/src/detector.cpp 0.00% <0.00%> (ø)
...lidar_centerpoint/lib/network/tensorrt_wrapper.cpp 0.00% <0.00%> (ø)
perception/tensorrt_yolo/lib/src/trt_yolo.cpp 0.00% <0.00%> (ø)
...tion/traffic_light_classifier/utils/trt_common.cpp 0.00% <0.00%> (ø)
...tion/traffic_light_classifier/utils/trt_common.hpp 0.00% <ø> (ø)
...raffic_light_ssd_fine_detector/lib/src/trt_ssd.cpp 0.00% <0.00%> (ø)
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@yukkysaito
Copy link
Contributor

yukkysaito commented Jul 30, 2022

is it supported to work on x86 and nvidia gpu not only Jetson AGX?

@yukke42
Copy link
Contributor

yukke42 commented Aug 1, 2022

The packages have failed to be built in the autoware environment.

Starting >>> lidar_apollo_instance_segmentation
--- stderr: lidar_apollo_instance_segmentation                                
/home/yusuke/ghq/github.com/tier4/pilot-auto.xx1/src/autoware/universe/perception/lidar_apollo_instance_segmentation/src/detector.cpp: In constructor ‘LidarApolloInstanceSegmentation::LidarApolloInstanceSegmentation(rclcpp::Node*)’:
/home/yusuke/ghq/github.com/tier4/pilot-auto.xx1/src/autoware/universe/perception/lidar_apollo_instance_segmentation/src/detector.cpp:63:13: error: ‘class nvinfer1::IBuilderConfig’ has no member named ‘setMemoryPoolLimit’
   63 |     config->setMemoryPoolLimit(nvinfer1::MemoryPoolType::kWORKSPACE, 1 << 30);
      |             ^~~~~~~~~~~~~~~~~~
/home/yusuke/ghq/github.com/tier4/pilot-auto.xx1/src/autoware/universe/perception/lidar_apollo_instance_segmentation/src/detector.cpp:63:42: error: ‘nvinfer1::MemoryPoolType’ has not been declared
   63 |     config->setMemoryPoolLimit(nvinfer1::MemoryPoolType::kWORKSPACE, 1 << 30);
      |                                          ^~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/lidar_apollo_instance_segmentation.dir/build.make:76: CMakeFiles/lidar_apollo_instance_segmentation.dir/src/detector.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:82: CMakeFiles/lidar_apollo_instance_segmentation.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< lidar_apollo_instance_segmentation [10.0s, exited with code 2]

Summary: 10 packages finished [13.7s]
  1 package failed: lidar_apollo_instance_segmentation
  1 package had stderr output: lidar_apollo_instance_segmentation
❯ sudo dpkg -l | grep libnvinfer
hi  libnvinfer-dev                                      8.2.4-1+cuda11.4                     amd64        TensorRT development libraries and headers
hi  libnvinfer-plugin-dev                               8.2.4-1+cuda11.4                     amd64        TensorRT plugin libraries
hi  libnvinfer-plugin8                                  8.2.4-1+cuda11.4                     amd64        TensorRT plugin libraries
hi  libnvinfer8                                         8.2.4-1+cuda11.4                     amd64        TensorRT runtime libraries

@wep21
Copy link
Contributor Author

wep21 commented Aug 3, 2022

This PR requires autowarefoundation/autoware#2766.

@yukke42
Copy link
Contributor

yukke42 commented Aug 4, 2022

@wep21 I checked the lidar_centerpoint package runs successfully with autowarefoundation/autoware#2766. But there are no outputs from the lidar_apollo_instance_segmentation package by the error [lidar_apollo_instance_segmentation_node-29] ERROR: 3: [executionContext.cpp::executeV2::521] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::executeV2::521, condition: !mEngine.hasImplicitBatchDimension(). So traffic_light_classifier may also have the same error. Cloud you please check this error?

@wep21
Copy link
Contributor Author

wep21 commented Aug 4, 2022

@yukke42 Could you try #1436 first? It may be better to keep backward compatibility for multiple l4t version e.g. 32.6(tensorrt 8.2) and 34.1(tensorrt 8.4).

@wep21
Copy link
Contributor Author

wep21 commented Aug 8, 2022

@NilaySener I added modifications to compile without adding -Wno-deprecated-declarations except for lidar_apollo_instance_segmentation. Could you try and review this PR?

@wep21
Copy link
Contributor Author

wep21 commented Aug 8, 2022

@yukke42 I added more modifications to build with tensorrt 8.2. Could you try to run with a rosbag again?
I reverted changes for lidar_apollo_instance_segmentation because explicit batch is not supported for caffe parser. NVIDIA/TensorRT#470

Copy link
Contributor

@yukke42 yukke42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed for these packages to run successfully.

Daisuke Nishimatsu added 3 commits August 10, 2022 20:04
Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
@wep21 wep21 merged commit 0685e63 into main Aug 10, 2022
@wep21 wep21 deleted the fix/update-trt-api branch August 10, 2022 11:46
@NilaySener
Copy link

@NilaySener I added modifications to compile without adding -Wno-deprecated-declarations except for lidar_apollo_instance_segmentation. Could you try and review this PR?

@wep21 I tried to compile this PR and it didn't give a deprecation error on Jetson AGX-Orin.

@wep21
Copy link
Contributor Author

wep21 commented Aug 10, 2022

@NilaySener Thank you for confirming it. Your PR is closed due to merging this PR, but thank you for your contribution.

kosuke55 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 12, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
kosuke55 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 13, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
s-azumi pushed a commit to tier4/autoware.universe that referenced this pull request Aug 29, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
s-azumi pushed a commit to tier4/autoware.universe that referenced this pull request Aug 29, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
s-azumi added a commit to tier4/autoware.universe that referenced this pull request Aug 29, 2022
h-ohta pushed a commit to tier4/autoware.universe that referenced this pull request Sep 5, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
h-ohta pushed a commit to tier4/autoware.universe that referenced this pull request Sep 5, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Sep 6, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
0x126 pushed a commit to tier4/autoware.universe that referenced this pull request Oct 17, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
badai-nguyen pushed a commit to badai-nguyen/autoware.universe that referenced this pull request Feb 2, 2023
* fix: update trt api

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* compatible build with tensorrt 8.2

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>

* revert changes for caffe parser

Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants