Jetson-inference detectnet

I performed the detection of an object (Coin) with the detectnet example of jetson-inference, with 10 training images and 4 test images, but it always marks me twice in each image, does anyone know the reason? I used too few images? But it really is a very simple object.

increases the sampling of 43 for training, 10 for testing and 11 for validation, it already identifies the correct amount of the object, but it identifies everything as currency, even wire, which I must modify in the training of this detection model.

Hi,

Based on the documents below, we recommend at least 100 training images per class.

Could you increase the dataset and try it again?

Thanks.

yes, I am using 380 images but now when I try to detect the same object at a distance greater than 30 centimeters it cannot locate any object.

any suggestions on this?

Which Jetpack version are you running? 6.0 or earlier?

Jetpack 6.0

Now I have a problem with Docker, I don’t know what happened. It was working fine and I requested an update of the operating system and installed it, but since then I can’t run Docker.
I think it’s a problem with the network, something like a bridge.
I need your help to solve this.





1 Like

Hi,

The error is related to the recent docker 28.0.0 update.
You can find the WAR in the below comment:

Thanks.

Thanks for the info, docker up date and run.

What is the reason that I do not detect the object at a distance greater than 30 centimeters, when I am using more than 300 images per class (Paste and NO_Paste).

This image is 20 cm from the objects:

and this is 35 centimeters away, from this distance it does not detect any object:

Hi,

Are there some images with objects at a distance greater than 30 centimeters?

Please note that jetson-inference apply resizing before feeding the image to the DNN.
For example, SSD-Mobilenet input is 300x300 so it might not be good for the small objects.

There is discussion to increase the network input size for small objects:

Thanks.

Yes, I have images larger than 30 centimeters that I used in training, I already changed the resolution to create the ssd-mobilente.onnx ($ python3 onnex_export.py --resolution=512 --model-dir=models/Coin/), and changed the threshold for the detectnet, these are my results, with the same image, which I actually used for training.
What modifications can I make to improve my model? I have already used more than 300 images for training, changed the resolution and performed tests with the threshold.

threshold=0.2

threshold= 0.21

threshold=0.22

threshold=0.23

threshold=0.24

threshold=0.25

threshold=0.26

threshold=0.27

threshold=0.28

threshold=0.29

Hi,

Do you want to detect the circle or just the white square?
Could you also share some training images and the corresponding label with us?

Thanks.

I want to detect the white square, I have two classes, when trying to do the training I have the following error.

Hi,

The error comes from a custom script called Opencv_LabelSiemens.py.
It requires a library called tesseract.

Have you installed it in your environment?
If not, please try to install it and try it again.

Thanks.