IMC_PT_SparseGM

class pygmtools.dataset.IMC_PT_SparseGM(sets, obj_resize, ds_dict=None, **args)[source]

This class is defined to download and preprocess IMC_PT_SparseGM dataset.

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

  • obj_resize – tuple, resized image size

  • ds_dict

    settings of dataset, containing at most 1 param(key) for IMC_PT_SparseGM:

    TOTAL_KPT_NUM: int, maximum kpt_num in an image

download(url=None)[source]

Automatically download IMC_PT_SparseGM dataset.

Parameters

url – str, web url of IMC_PT_SparseGM

process()[source]

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