玩转NVIDIA Jetson Xavier NX

最近入手了一块NVIDIA Jetson Xavier NX的板子,在此记录一下相关的记录

一、基础命令

基础信息查看

jetson_release

查看状态:sudo jtop

二、安装TensorFlow

下载

tensorflow-2.7.0+nv22.1-cp36-cp36m-linux_aarch64.whl

安装

pip3 install tensorflow-2.7.0+nv22.1-cp36-cp36m-linux_aarch64.whl

遇到h5py安装失败

下载

h5py-3.1.0-cp36-cp36m-linux_aarch64.whl

安装

pip3 install h5py-3.1.0-cp36-cp36m-linux_aarch64.whl

重新安装tensorflow即可

测试:

jetson@jetson-desktop:~$ python3
Python 3.6.9 (default, Jun 29 2022, 11:45:57)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> print (tf.__version__)
2.7.0
>>>
 

三、yolov5

下载

git clone https://github.com/ultralytics/yolov5.git

安装

pip3 install -r requirements.txt

测试

python3 detect.py

你可能感兴趣的:(jetson,xavier,nx,tensorflow,人工智能,python)