lanzani / jetson-docs Goto Github PK
View Code? Open in Web Editor NEW๐ Independent, centralized and community tested nvidia jetson documentation.
Home Page: https://jetson-docs.com
License: MIT License
๐ Independent, centralized and community tested nvidia jetson documentation.
Home Page: https://jetson-docs.com
License: MIT License
Hi Dear Lanzani,
Thanks for your help maintaining jetson-docs,
I need to rebuild the mediapipe0.10.7 - python3.8 wheel to run some algorithms using ssh sessions on remote terminals.
Can you share the steps to build the wheel?
Regards
AR
I've implemented a facial detection + recognition code on the Jetson Nano, the facial detection part is implemented using MediaPipe 0.8.5 (BlazeFace model) and runs on the GPU of the Jetson nano, while the recognition is implemented using DLib's face_recognition library and runs on the CPU of the Jetson Nano.
Commenting out the facial recognition part of the code, the facial detection part of the code runs at about 30 fps. But, when I try running both the detection+recognition the overall frame rate drops to about 5 fps. Need help with how I can avoid this drastic drop in the overall frame rate on the Jetson Nano?
After running the command pip3 install v0.8.5/v0.8.5/numpy119x/py36/mediapipe-0.8.5_cuda102-cp36-cp36m-linux_aarch64.whl
and waiting for more than 3 hours I got the error below:
~/mediapipe-bin$ pip3 install v0.8.5/v0.8.5/numpy119x/py36/mediapipe-0.8.5_cuda102-cp36-cp36m-linux_aarch64.whl
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see pypa/pip#5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Processing ./v0.8.5/v0.8.5/numpy119x/py36/mediapipe-0.8.5_cuda102-cp36-cp36m-linux_aarch64.whl
Requirement already satisfied: numpy==1.19.4 in /usr/local/lib/python3.6/dist-packages (from mediapipe==0.8.5-cuda102) (1.19.4)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from mediapipe==0.8.5-cuda102) (0.30.0)
Collecting opencv-contrib-python
Downloading opencv-contrib-python-4.9.0.80.tar.gz (152.6 MB)
|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 152.6 MB 6.5 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting absl-py
Downloading absl_py-1.4.0-py3-none-any.whl (126 kB)
|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 126 kB 5.2 MB/s
Requirement already satisfied: protobuf>=3.11.4 in /usr/local/lib/python3.6/dist-packages (from mediapipe==0.8.5-cuda102) (3.19.6)
Collecting attrs>=19.1.0
Downloading attrs-22.2.0-py3-none-any.whl (60 kB)
|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 60 kB 2.0 MB/s
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from mediapipe==0.8.5-cuda102) (1.11.0)
Building wheels for collected packages: opencv-contrib-python
Building wheel for opencv-contrib-python (pyproject.toml) ... done
Created wheel for opencv-contrib-python: filename=opencv_contrib_python-4.9.0.80-cp36-cp36m-linux_aarch64.whl size=21413170 sha256=fe83dc36fd60abf1d280846d24af33f6fe4392f45cfa92223fa78d745e09af62
Stored in directory: /home/nikhil/.cache/pip/wheels/d3/15/23/dafe20985a737773ed2f139e6917ecabc74d64cf17cfef1907
Successfully built opencv-contrib-python
Installing collected packages: opencv-contrib-python, attrs, absl-py, mediapipe
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/nikhil/.local/lib/python3.6'
Check the permissions.
Please help me resolve this error.
Prior to following the steps on the link: https://jetson-docs.com/libraries/opencv/l4t32.7.1/py3.6.9 I had OpenCV 4.1.2 installed on my system with Cuda support. After implementing all the steps on the same link and after running the command opencv_version
I get 4.8.0
But when I run python3 -c "import cv2; print(cv2.__version__)"
or Step7 of the link above python3 -c "import cv2; print('OpenCV version:', str(cv2.__version__)); print(cv2.getBuildInformation())"
I get OpenCV version: 4.1.2 and it's build details. I need to see OpenCV version as 4.8.0 after running the command python3 -c "import cv2; print('OpenCV version:', str(cv2.__version__)); print(cv2.getBuildInformation())"
How do I do this?
Please refer to the image attached in my next comment.
Kindly pls help.
After running every command on the link: https://jetson-docs.com/libraries/opencv/l4t32.7.1/py3.8.0
I'm not able to install openCV 4.8.0
After running the command python3 -c "import cv2; print('OpenCV version:', str(cv2.__version__)); print(cv2.getBuildInformation())"
and while trying to import the opencv library I get the following error:
python3
Python 3.8.0 (default, Dec 9 2021, 17:53:27)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 112, in bootstrap
load_first_config([
File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 109, in load_first_config
raise ImportError('OpenCV loader: missing configuration file: {}. Check OpenCV installation.'.format(fnames))
ImportError: OpenCV loader: missing configuration file: ['[config-3.8.py](http://config-3.8.py/)', 'config-3.py']. Check OpenCV installation
Pls note: I've added the line: export PYTHONPATH=/usr/local/lib/python3.6/site-packages:$PYTHONPATH
in the bashrc file.
Since I've installed python 3.8, I also tried replacing the abov line with: export PYTHONPATH=/usr/local/lib/python3.8/site-packages:$PYTHONPATH
in the bashrc file, but the same Error persists.
How do I resolve this error?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.