Preparing the COCO dataset folder structure

Now we will see the code to prepare the COCO dataset folder structure as follows:

# We need the following Folder structure: coco [coco_train2014, coco_val2014, annotations]mkdir -p $DETECTRON/lib/datasets/data/cocoln -s /path/to/coco_train2014 $DETECTRON/lib/datasets/data/coco/ln -s /path/to/coco_val2014 $DETECTRON/lib/datasets/data/coco/ln -s /path/to/json/annotations $DETECTRON/lib/datasets/data/coco/annotations

Get Practical Convolutional Neural Networks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.