OSError: ~/.mxnet/datasets/coco is not a valid dir. Did you forget to initialize datasets described in: `https://cv.gluon.ai/build/examples_datasets/index.html`? You need to initialize each dataset only once.

from gluoncv import data, utils

from matplotlib import pyplot as plt

#splitting the data to train and validation

train_dataset = data.COCODetection(splits=[‘instances_train2017’])

val_dataset = data.COCODetection(splits=[‘instances_val2017’])

print(‘Num of training images:’, len(train_dataset))

print(‘Num of validation images:’, len(val_dataset))

I have used MS COCO dataset

i am getting error ::OSError: ~/.mxnet/datasets/coco is not a valid dir. Did you forget to initialize datasets described in: https://cv.gluon.ai/build/examples_datasets/index.html? You need to initialize each dataset only once.