SSD-pytorch icon indicating copy to clipboard operation
SSD-pytorch copied to clipboard

how to use my own dataset

Open myasser63 opened this issue 3 years ago • 3 comments

I want to use this model to train on my own dataset. If I use my dataset instead of COCO dataset with the same directory format will it work?

myasser63 avatar Dec 29 '21 09:12 myasser63

Yes, definitely

uvipen avatar Dec 29 '21 12:12 uvipen

@uvipen Could ypu guide me on how to use my own data. I tried but I couldn't make work

myasser63 avatar Jan 06 '22 06:01 myasser63

@myasser63 you couldn't make it work because there are hard-coded dataset directory structure assumptions in the code. You'll have to modify how train.py handles the --data-path arg, and how annFile and root are constructed in src/dataset.py around line 21.

My recommendation would be to change the --data-path arg to --image-root-dir and --coco-file args, then stop making assumptions about annFile and root (and also give them more descriptive names) in src/dataset.py.

matt-guay-percipient avatar Mar 20 '23 21:03 matt-guay-percipient