Setup
This page details setup steps needed to start using JetNet
Docker Setup
JetNet comes with pre-built docker containers for some system configurations. If you have the disk space and there is an available container, this is a fast and easy option for getting started.
To use the container, first clone the github repo
Next, launch the docker container from inside the cloned directory
This will mount the current directory (which should be the jetnet project root) at /jetnet
inside
the container. Most data downloaded when using JetNet is stored in the data
folder. So
assuming you use JetNet command line tools from /jetnet
inside the container, the data will persist
upon container restart.
Note, this command assumes you have a USB camera at /dev/video0. Please adjust the command accordingly.
Building docker containers
You may want to build the containers yourself, if you have additional dependencies, or need to use a different base container. Below are the commands we use to build the pre-made containers. Check the GitHub repo docker files for more details.Manual Setup
If there is not a container available for your platform, or you don't have the storage space, you can set up your system natively.
- Install TensorRT, PyTorch, OpenCV and Torchvision (please refer to external instructions)
-
Install miscellanerous dependencies
-
Install torch2trt
-
Install YOLOX (required for
jetnet.yolox
) -
Install EasyOCR (required for
jetnet.easyocr
) -
Install TRTPose (required for
jetnet.trt_pose
) -
Install JetNet
Currently we exclude
jetnet.mmocr
from manual setup. For now, please reference the dockerfile in the GitHub repo if you wish to use these models.