PascalVOC

class pygmtools.dataset.PascalVOC(sets, obj_resize, **args)[source]

This class is defined to download and preprocess PascalVOC dataset.

Parameters
  • sets – str, problem set, ‘train’ for training set and ‘test’ for test set

  • obj_resize – tuple, resized image size

download(url=None, name=None)[source]

Automatically download PascalVOC dataset.

Parameters
  • url – str, web url of PascalVOC and PascalVOC annotation

  • name – str, “PascalVOC” to download PascalVOC and “PascalVOC_anno” to download PascalVOC annotation

process()[source]

Process the dataset and generate ‘data.json’ for preprocessed dataset, ‘train.json’ for training set, and ‘test.json’ for test set.