2 days to a demo > object detection > ssd > detectnet files

Hi, I’m using the ssd object detection model from ‘two days to a demo’ to recognize animals in images. I’m trying to add information about the object identified to the image file name as it is output. How can I access the program file that has the print statements for this information (what shows on the terminal as the model identifies objects in images) and/or how can I do this?

Thank you!

@dusty_nv do you know how I can do this?

Hi @g.santose4, you can change the labels.txt or edit the C++ or Python source of the application:

Hi @dusty_nv ,
I tried editing those files, but they have no effect on running:

detectnet --model=models/‘my model’/ssd-mobilenet.onnx --labels=models/‘my model’/labels.txt
–input-blob=input_0 --output-cvg=scores --output-bbox=boxes
“$IMAGES/‘my images’_*.jpg” $IMAGES/test/‘my images’%i.jpg

I am running this within jetson-inference/python/training/detection/ssd.

Thank you for your help

Hi @g.santose4, after you make your changes, re-run this:

$ cd /path/to/your/jetson-inference
$ cd build
$ cmake ../
$ make
$ sudo make install

The changes should then take effect.

1 Like

That worked, thank you!!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.