Welcome to ROSMASTER M1 repository
11.Model prediction
Model prediction
Model prediction1. Best performance modeEnable Jetson Clocks2. Model prediction2.1. CLI usage2.2, Python usageEffect preview
1. Best performance mode
Enable Jetson Clocks
Enabling Jetson Clocks will ensure that all CPU and GPU cores run at maximum frequency:
sudo jetson_clocks
2. Model prediction
2.1. CLI usage
CLI currently only supports calling USB cameras. Nuwa camera users can directly modify the previous python code to call onnx and engine models!
xxxxxxxxxxyolo predict model=best.engine source=0 save=False show # For multiple cameras, change the number after source.
2.2, Python usage
Use best.engine to predict the camera image:
Start the camera.
#usb cameraros2 launch usb_cam camera.launch.py #nuwa cameraros2 launch ascamera hp60c.launch.pyEnter the code folder:
xxxxxxxxxxcd /home/jetson/ultralytics/ultralytics/yahboom_demo
Run the code: Click the preview image, press the q key to terminate the program!