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

build(lidar_apollo_segmentation_tvm and lidar_apollo_segmentation_tvm_nodes): remove download from cmake #5431

Conversation

lexavtanke
Copy link
Contributor

Description

According to #3137.

This PR updates lidar_apollo_segmentation_tvm and lidar_apollo_segmentation_tvm_nodes packages. Now they use updated version of function get_neural_network which do not download neural networks files. Configuration headers of compiled nets are part of the source tree for now. The rest of the networks files is expected to be in autoware_data folder under lidar_apollo_segmentation directory.

Tests are removed from lidar_apollo_segmentation_tvm package as they require model files as test fixture which weights 11.9 Mb and can't be part of the source tree. Because we can't use git-lfs for autoware-universe repo. See #4923

Tests performed

Not applicable.

Effects on system behavior

Not applicable.

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.

lexavtanke and others added 30 commits September 7, 2023 18:10
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…entation

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…nn config header and test image

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…d on device

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
@lexavtanke lexavtanke marked this pull request as ready for review October 27, 2023 13:23
@github-actions github-actions bot removed the component:common Common packages from the autoware-common repository. (auto-assigned) label Nov 1, 2023
@ambroise-arm ambroise-arm added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (ee20545) 14.86% compared to head (6260712) 14.76%.
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5431      +/-   ##
==========================================
- Coverage   14.86%   14.76%   -0.10%     
==========================================
  Files        1666     1677      +11     
  Lines      116258   116739     +481     
  Branches    36266    36435     +169     
==========================================
- Hits        17277    17242      -35     
- Misses      79476    79988     +512     
- Partials    19505    19509       +4     
Flag Coverage Δ *Carryforward flag
differential 1.25% <4.54%> (?)
total 14.83% <ø> (-0.03%) ⬇️ Carriedforward from 7a77479

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

Files Coverage Δ
...entation_tvm/src/lidar_apollo_segmentation_tvm.cpp 0.00% <0.00%> (ø)
...m_nodes/src/lidar_apollo_segmentation_tvm_node.cpp 0.00% <0.00%> (ø)
...eption/lidar_apollo_segmentation_tvm/test/main.cpp 5.76% <5.00%> (ø)

... and 22 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ambroise-arm ambroise-arm left a comment

Choose a reason for hiding this comment

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

LGTM

@lexavtanke lexavtanke merged commit 934db6c into autowarefoundation:main Nov 8, 2023
20 of 26 checks passed
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Nov 9, 2023
…_nodes): remove download from cmake (autowarefoundation#5431)

* add include tier4_autoware_utils and dependency

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* remove downloading logic from Cmake, update documentation 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): remove downloading logic from Cmake, update documentation 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): fix lint_cmake error

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): format warning message 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add logic to work with autoware_data folder, add nn config header and test image 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* style(pre-commit): autofix

* build(tvm_utility): refactor, update InferenceEngineTVM constructor

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add lightweight model and test with it

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): make building yolo_v2_tiny disable by default

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): remove test artifact for yolo_v2_tiny

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update docs 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update docs

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): update namespace in abs_model test

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): rewrite yolo_v2_tiny as example 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): clean comments in yolo_v2_tiny example main.cpp

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add launch file for yolo_v2_tiny example

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update yolo_v2_tiny example readme

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add model for arm based systems, need to be tested on device

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* style(pre-commit): autofix

* build(tvm_utility): update config header for arm

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): remove debug output 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add find_package conditional section

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix lint_cmake errors

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): remove coping model files during build

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update readme with new data folder structure

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix spell check warnings 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add no model files guard to get_neural_network 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): set back default paths in config headers

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation): wip update launch files

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add param file, update launch file

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add schema file, update node name

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): fix json-schema-check

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix json-schema-check

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add parameter table to example readme

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix typo-error in description of schema.json

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* buiild(tvm_utility): fix spell-check warning and typo

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat(spell-check): add dltype and tvmgen to local dict 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(lidar_apollo_segmentation_tvm): remove test

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): add data_path to constructor

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm_nodes): add data_path to param file

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm_nodes): add allow_substs to launches

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(lidar_apollo_segmentation_tvm_nodes): update README

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): update README

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm_nodes): fix schema typo

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): remove unused import

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): suppress cpplint

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): suppress cpplint

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): return test back and update it

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(lidar_apollo_segmentation_tvm): fix cpplilnt errors

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmenntation_tvm): update checking for models files 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

---------

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@lexavtanke lexavtanke deleted the build-lidar-apollo-segmentation-tvm-remove-download branch November 10, 2023 09:48
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 22, 2023
…_nodes): remove download from cmake (autowarefoundation#5431)

* add include tier4_autoware_utils and dependency

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* remove downloading logic from Cmake, update documentation 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): remove downloading logic from Cmake, update documentation 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): fix lint_cmake error

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): format warning message 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add logic to work with autoware_data folder, add nn config header and test image 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* style(pre-commit): autofix

* build(tvm_utility): refactor, update InferenceEngineTVM constructor

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add lightweight model and test with it

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): make building yolo_v2_tiny disable by default

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): remove test artifact for yolo_v2_tiny

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update docs 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update docs

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): update namespace in abs_model test

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): rewrite yolo_v2_tiny as example 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): clean comments in yolo_v2_tiny example main.cpp

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add launch file for yolo_v2_tiny example

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update yolo_v2_tiny example readme

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add model for arm based systems, need to be tested on device

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* style(pre-commit): autofix

* build(tvm_utility): update config header for arm

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): remove debug output 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add find_package conditional section

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix lint_cmake errors

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): remove coping model files during build

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): update readme with new data folder structure

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix spell check warnings 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add no model files guard to get_neural_network 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): set back default paths in config headers

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation): wip update launch files

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add param file, update launch file

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): add schema file, update node name

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): fix json-schema-check

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix json-schema-check

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(tvm_utility): add parameter table to example readme

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(tvm_utility): fix typo-error in description of schema.json

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* buiild(tvm_utility): fix spell-check warning and typo

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* feat(spell-check): add dltype and tvmgen to local dict 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(lidar_apollo_segmentation_tvm): remove test

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): add data_path to constructor

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm_nodes): add data_path to param file

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm_nodes): add allow_substs to launches

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(lidar_apollo_segmentation_tvm_nodes): update README

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): update README

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm_nodes): fix schema typo

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): remove unused import

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): suppress cpplint

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): suppress cpplint

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmentation_tvm): return test back and update it

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

* build(lidar_apollo_segmentation_tvm): fix cpplilnt errors

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* build(lidar_apollo_segmenntation_tvm): update checking for models files 

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>

* style(pre-commit): autofix

---------

Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants