zsseg.baseline icon indicating copy to clipboard operation
zsseg.baseline copied to clipboard

VOC 2012 Dataset Preparation

Open tauseef09 opened this issue 2 years ago • 1 comments

I am a bit confused as to how the VOC2012 dataset should be prepared for this model. The instruction says that the file structure should be like this: Capture

I hope some of my confusions can be cleared up regarding the matter.

  1. I'm guessing that the first link is the link to download the whole VOC2012 dataset folder and from there we need to extract the JPEGImages folder and the val.txt file. But the VOC2012/ImageSets folder has 4 separate folders (Action, Layout, Main, Segmentation) under it, each of which contains a val.txt file. Which one am I supposed to select? I was inclined towards selecting the one under the 'Main' folder.
  2. The second link, I'm guessing, is a link to download the SegmentationClassAug folder which I am unable to find. Any guidance as to where exactly to look for will be helpful.
  3. The third link is one that has a file named trainaug.txt which I am supposed to download and rename as train.txt if I'm not wrong?

tauseef09 avatar Aug 03 '22 16:08 tauseef09

For the first question, I think it is 'Segmentation'. I copy val.txt in that folder and run the code. No problem happened. In addition, if you run the prepare script, founding bug-like 'FileNotFoundError: [Errno 2] No such file or directory: 'datasets/VOC2012/annotations_detectron2/train_base_10class/2007_000032.png'', you can fix the code in 'prepare_voc_sem_seg.py', you need add 'train_base_10class' below line 86.

shaosen11 avatar Jan 26 '24 22:01 shaosen11