Tools
Pick a pre-defined model and use it with these tools.
For this example, we'll use the jetnet.trt_pose.RESNET18_BODY_224X224_TRT_FP16
model.
You can also define your our own model or dataset and use it with these tools as long as it can be imported in Python.
Build
jetnet build
is a convenience tool that simply imports the model and calls model.build()
. This is useful for testing if a model builds and for generating cached data before using the model elsewhere.
To use it, call jetnet build <model>
. For example,
Profile
jetnet profile
profiles a model on real data. It measures the model throughput,
as well as other task specific statistics like the average number of objects per image. This
is handy, especially for models that may have data-dependent runtime.
To use it, call jetnet profile <model> <dataset>
. For example,
example output:
example output:
example output:
Demo
jetnet demo
peforms inference on live camera images and displays predictions in your web browser.
This is especially handy when you're operating on a headless machine.
With a USB camera attached, call jetnet demo <model>
. For example,
Once the demo is running, navigate to http://<ip>:8000
in your web browser to view the predictions.
Once the demo is running, navigate to http://<ip>:8000
in your web browser to view the predictions.
Once the demo is running, navigate to http://<ip>:8000
in your web browser to view the predictions.