hi, i retrained and exported my model for ssd mobilenet v1, however when i start it, it does not detect anything.
I have been training it for 30 epochs and set the threshold = .1
, but it did not work;this is the python script i used:
import cv2
import jetson.inference
import jetson.utilsnet = jetson.inference.detectNet(‘ssd-mobilenet-v1’,[‘–model=/home/user/Downloads/jetson-inference/python/training/detection/ssd/models/model_test/ssd-mobilenet.onnx’,‘–input_blob=input_0’,‘–output-cvg=scores’,‘–output-bbox=boxes’,‘–labels=/home/user/Downloads/jetson-inference/python/training/detection/ssd/models/model_test/labels.txt’],threshold = .1)
net = jetson.inference.detectNet(‘ssd-mobilenet-v1’,threshold = .5)
cam = jetson.utils.gstCamera(640, 480,‘/dev/video0’)
display = jetson.utils.glDisplay()while display.IsOpen():
img, width, height = cam.CaptureRGBA()
detections = net.Detect(img, width, height)
display.RenderOnce(img, width, height)
given the error, I tried to test the model from run_ssd_example.py
,I realized that it does not correctly detect the labels.txt file,I am attaching a photo in which everything is displayed.
i tried to rename the file many times and i searched for a solution on the internet but i could not find anything, could someone help me, thanks!
PS:I’m not sure how relevant this is, but the folder can only be changed as root