Jetson Inference Object Detection DetectNet unable to locate test.txt

I am trying to train the SSDv2 model off of a custom detection dataset collected from the camera-capture program for the jetson nano. When I run the script:

root@ubuntu:/jetson-inference/python/training/detection/ssd# python3 --dataset-type=voc --data=data/pingpongballs --model-dir=models/pingpongballs --batch-size=2 --workers=1 --epochs=1

I encounter this error below.
Traceback (most recent call last):
File “”, line 243, in
target_transform=target_transform, is_test=True)
File “/jetson-inference/python/training/detection/ssd/vision/datasets/”, line 33, in init
raise IOError(“missing ImageSet file {:s}”.format(str(image_sets_file)))
OSError: missing ImageSet file data/pingpongballs/ImageSets/Main/test.txt

I figured it has something to do with the missing file test.txt. However, I’m unable to add any files in the pingpongballs ImageSets folder as it is restricted. I saw that others online had 4 files in their ImageSets/Main folder which are train.txt, trainval.txt, test.txt, and val.txt. However there are only train.txt and trainval.txt in my ImageSets/Main folder. Am I missing some installation to get these other two files?

Thank you.


You can change the owner to enable writing permission.

$ sudo chown -R [account]:[account] <folder> 


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