Commit 286b9f41 authored by Ilija Radosavovic's avatar Ilija Radosavovic Committed by Facebook Github Bot

Clarify PASCAL VOC dir structure and annotation format assumptions

Reviewed By: rbgirshick

Differential Revision: D6793159

fbshipit-source-id: 8d8f12915809238d3dcf8066a94446e0feb4cc46
parent c941633f
...@@ -42,22 +42,33 @@ Similarly, the union of `valminusminival` and the 2014 `train` is exactly equiva ...@@ -42,22 +42,33 @@ Similarly, the union of `valminusminival` and the 2014 `train` is exactly equiva
## Creating Symlinks for PASCAL VOC ## Creating Symlinks for PASCAL VOC
Symlink the PASCAL VOC dataset: We assume that your symlinked `lib/datasets/data/VOC<year>` directory has the following structure:
``` ```
# VOC 2007 VOC<year>
mkdir -p $DETECTRON/lib/datasets/data/VOC2007 |_ JPEGImages
ln -s /path/to/VOC2007/JPEG/images $DETECTRON/lib/datasets/data/VOC2007/JPEGImages | |_ <im-1-name>.jpg
ln -s /path/to/VOC2007/json/annotations $DETECTRON/lib/datasets/annotations | |_ ...
ln -s /path/to/VOC2007/devkit $DETECTRON/lib/datasets/VOCdevkit2007 | |_ <im-N-name>.jpg
|_ annotations
# VOC 2012 | |_ voc_<year>_trainval.json
mkdir -p $DETECTRON/lib/datasets/data/VOC2012 | |_ ...
ln -s /path/to/VOC2012/JPEG/images $DETECTRON/lib/datasets/data/VOC2012/JPEGImages |_ VOCdevkit<year>
ln -s /path/to/VOC2012/json/annotations $DETECTRON/lib/datasets/annotations
ln -s /path/to/VOC2012/devkit $DETECTRON/lib/datasets/VOCdevkit2012
``` ```
Create symlinks for `VOC<year>`:
```
mkdir -p $DETECTRON/lib/datasets/data/VOC<year>
ln -s /path/to/VOC<year>/JPEGImages $DETECTRON/lib/datasets/data/VOC<year>/JPEGImages
ln -s /path/to/VOC<year>/json/annotations $DETECTRON/lib/datasets/data/VOC<year>annotations
ln -s /path/to/VOC<year>/devkit $DETECTRON/lib/datasets/VOC<year>/VOCdevkit<year>
```
### PASCAL VOC Annotations in COCO Format
We expect PASCAL VOC annotations converted to COCO json format, which are available for download [here](https://storage.googleapis.com/coco-dataset/external/PASCAL_VOC.zip ).
## Creating Symlinks for Cityscapes: ## Creating Symlinks for Cityscapes:
Symlink the Cityscapes dataset: Symlink the Cityscapes dataset:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment