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

Tx2 install dev #384

Merged
merged 90 commits into from
Dec 23, 2022
Merged

Tx2 install dev #384

merged 90 commits into from
Dec 23, 2022

Conversation

Pavlos-Tosidis
Copy link
Collaborator

This PR introduces the instructions for running OpenDR toolkit on an embedded device.
The docker images are uploaded on dockerhub and are thoroughly tested.
A Dockerfile-embedded is also included for future reference/baseline to build the docker image as well as the install_nvidia.sh which installs all dependencies correctly.
#195 should also be closed since this PR is the improved version.

Pavlos-Tosidis and others added 30 commits January 10, 2022 11:22
Updated installation.md and changed import statements in object_detection_2d gem and detr.
Tested it twice on two different TX2 boards successfully.
Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>
Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>
Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>
Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>
Tools that were tested under opendr/projects/perception and work:
- [x] Activity recognition
- [x] Face recognition
- [x] Lightweight Open Pose
- [x] Multimodal human centric
- [x] Object Detection 2D
   - [x] CenterNet
   - [x] Detr
   - [x] Gem
   - [x] RetinaFace
   - [x] SSD
   - [x] YOLOv3
- [x] Object tracking 2d
- [x] Semantic segmentation - Bisenet
- [x] Speech command recognition

The rest of the demos are not complete, i.e. missing an inference demo and/or data to run it.
Tools that were tested under opendr/projects/perception and work:
- [x] Activity recognition
- [x] Face recognition
- [x] Lightweight Open Pose
- [x] Multimodal human centric
- [x] Object Detection 2D
   - [x] CenterNet
   - [x] Detr
   - [x] Gem
   - [x] RetinaFace
   - [x] SSD
   - [x] YOLOv3
- [x] Object tracking 2d
- [x] Semantic segmentation - Bisenet
- [x] Speech command recognition

The rest of the demos are not complete, i.e. missing an inference demo and/or data to run it.
Tools that were tested under opendr/projects/perception and work:
- [x] Activity recognition
- [x] Face recognition
- [x] Lightweight Open Pose
- [x] Multimodal human centric
- [x] Object Detection 2D
   - [x] CenterNet
   - [x] Detr
   - [x] Gem
   - [x] RetinaFace
   - [x] SSD
   - [x] YOLOv3
- [x] Object tracking 2d
- [x] Semantic segmentation - Bisenet
- [x] Speech command recognition

The rest of the demos are not complete, i.e. missing an inference demo and/or data to run it.
Added instructions on installation.md
Added instructions on installation.md
Added instructions on installation.md
@Pavlos-Tosidis Pavlos-Tosidis added documentation Improvements or additions to documentation enhancement New feature or request test sources Run style checks labels Dec 20, 2022
@tsampazk tsampazk mentioned this pull request Dec 20, 2022
Copy link
Collaborator

@passalis passalis left a comment

Choose a reason for hiding this comment

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

Thank you! I have added a few comments regarding the documentation. develop has a separate documentation file where instructions for customization/building docker images is described, so the relevant instructions should be added there instead.

Dockerfile-embedded Outdated Show resolved Hide resolved
Dockerfile-embedded Outdated Show resolved Hide resolved
Dockerfile-embedded Outdated Show resolved Hide resolved
Dockerfile-embedded Outdated Show resolved Hide resolved
Dockerfile-embedded Outdated Show resolved Hide resolved
Dockerfile-embedded Outdated Show resolved Hide resolved
docs/reference/installation.md Outdated Show resolved Hide resolved
docs/reference/installation.md Outdated Show resolved Hide resolved
@passalis
Copy link
Collaborator

Please also update CHANGELOG.md to indicate that we have included instructions, an improved embedded dockerfile and changes to support these devices.

@ad-daniel ad-daniel added the test tools Test the toolkit methods label Dec 22, 2022
Copy link
Collaborator

@ad-daniel ad-daniel left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Collaborator

@passalis passalis left a comment

Choose a reason for hiding this comment

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

Thank you!

@Pavlos-Tosidis Pavlos-Tosidis merged commit 381e1f5 into develop Dec 23, 2022
@Pavlos-Tosidis Pavlos-Tosidis deleted the tx2_install_dev branch December 23, 2022 10:36
lucamarchionni pushed a commit to lucamarchionni/opendr that referenced this pull request Jun 10, 2024
* Installation script for TX2.
Updated installation.md and changed import statements in object_detection_2d gem and detr.

* Update installation.md

* Updated tx2 installation script

Tested it twice on two different TX2 boards successfully.

* Update install_tx2.sh

* Update installation.md

* Update installation.md

* Update installation.md

* Update docs/reference/installation.md

Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>

* Update bin/install_tx2.sh

Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>

* Update bin/install_tx2.sh

Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>

* Update bin/install_tx2.sh

Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>

* Update install_tx2.sh

* Update install_tx2.sh

* Update install_tx2.sh

* Update install_tx2.sh

* Update install_tx2.sh

* Update edgespeechnets_learner.py

* Update install_tx2.sh

* This PR includes the docker file for tx-2.

Tools that were tested under opendr/projects/perception and work:
- [x] Activity recognition
- [x] Face recognition
- [x] Lightweight Open Pose
- [x] Multimodal human centric
- [x] Object Detection 2D
   - [x] CenterNet
   - [x] Detr
   - [x] Gem
   - [x] RetinaFace
   - [x] SSD
   - [x] YOLOv3
- [x] Object tracking 2d
- [x] Semantic segmentation - Bisenet
- [x] Speech command recognition

The rest of the demos are not complete, i.e. missing an inference demo and/or data to run it.

* This PR includes the docker file for tx-2.

Tools that were tested under opendr/projects/perception and work:
- [x] Activity recognition
- [x] Face recognition
- [x] Lightweight Open Pose
- [x] Multimodal human centric
- [x] Object Detection 2D
   - [x] CenterNet
   - [x] Detr
   - [x] Gem
   - [x] RetinaFace
   - [x] SSD
   - [x] YOLOv3
- [x] Object tracking 2d
- [x] Semantic segmentation - Bisenet
- [x] Speech command recognition

The rest of the demos are not complete, i.e. missing an inference demo and/or data to run it.

* This PR includes the docker file for tx-2.

Tools that were tested under opendr/projects/perception and work:
- [x] Activity recognition
- [x] Face recognition
- [x] Lightweight Open Pose
- [x] Multimodal human centric
- [x] Object Detection 2D
   - [x] CenterNet
   - [x] Detr
   - [x] Gem
   - [x] RetinaFace
   - [x] SSD
   - [x] YOLOv3
- [x] Object tracking 2d
- [x] Semantic segmentation - Bisenet
- [x] Speech command recognition

The rest of the demos are not complete, i.e. missing an inference demo and/or data to run it.

* Added argument for tx2, agx and nx support.
Added instructions on installation.md

* Added argument for tx2, agx and nx support.
Added instructions on installation.md

* Added argument for tx2, agx and nx support.
Added instructions on installation.md

* Update installation.md

* Update activate_nvidia.sh

Corrected python to point to python3 on Nvidia

* Working ROS and correct export of Python version

* Working ROS and correct export of Python version

* Working ROS and correct export of Python version

* Update Dockerfile-embedded

* Update Dockerfile-embedded

* Update Dockerfile-embedded

* Working ROS and correct export of Python version

* Fixed catkin_make, added it to dockerfile.

* Added missing HINT from installation.md

* Updates on default values for FairMOT ros node class ctor

* Fixed duplicate shortcut on deepsort ros node argparse

* Fixed missing shortcut on rgbd hand gesture reco ros node argparse

* Added "opendr_" to data gen package and "_node" to the node file name

* Renamed package to "opendr_perception" and added "_node" to scripts

* Applied fixes to yolov5

* Added "opendr_" to planning package

* Added "opendr_" to bridge package

* Added "opendr_" to simulation package

* Fixed old version of torch in pip_requirements.txt

* Renamed ros bridge package doc

* Renamed dirs, etc. from opendr_ros_bridge to opendr_bridge to match the actual package name

* Fixed ros readme link from customize.md

* Fixed index.md link for opendr-ros-bridge.md

* Minor typo fix in issues.md

* Fixed bridge package name in its doc

* Fixed bridge imports

* Updated for dev_branch

Fixed some missing dependencies

* Fixed some missing dependencies

* add detectron2 (test with new p3.8 Dockerfile)

* Detectron2 issues

* Update install_nvidia.sh

* python3.8 test

* Rolling back to Python3.6.9

* Update install_nvidia.sh

* Updated Dockerfile and dependencies for embedded devices
Changed python to python3 on all ROS nodes
Fixed a couple of issues
Added some exports in activate_nvidia.sh

* Various Fixes

* Removed torch import on data.py and the corresponding reference in Video class.
Added some docker run instructions

* Remove unused import

* Remove Typehint for pyhton compatibilty

* Apply suggestions from code review

Dockerfile-embedded suggested changes

Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>

* Fixed suggested changes

* Format

Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com>
Co-authored-by: ad-daniel <daniel.dias@epfl.ch>
Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
Co-authored-by: tsampazk <tsampaka@csd.auth.gr>
Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request test sources Run style checks test tools Test the toolkit methods
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants