伙计们,我有一个问题。我可以在我的 Jetson Nano 上运行对象检测 python 示例。在这种情况下为“ssh-mobilenet-v2”。它工作正常......我还训练了我自己的数据集并有一个 .pb 文件。如何使用它而不是“ssh-mobilenet-v2”?
import jetson.inference
import jetson.utils
net = jetson.inference.detectNet("ssd-mobilenet-v2", threshold=0.5)
camera = jetson.utils.gstCamera(1280, 720, "0") # RPIcam
display = jetson.utils.glDisplay()
while display.IsOpen():
img, width, height = camera.CaptureRGBA()
detections = net.Detect(img, width, height)
display.RenderOnce(img, width, height)
display.SetTitle("Object Detection | Network {:.0f} FPS".format(net.GetNetworkFPS()))
谢谢