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 train_ssd.py --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 “train_ssd.py”, line 243, in
target_transform=target_transform, is_test=True)
File “/jetson-inference/python/training/detection/ssd/vision/datasets/voc_dataset.py”, 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.

Hi,

You can change the owner to enable writing permission.
ex.

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

Thanks

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