INNER CODE UNIT · Python
set_dataset_filter
tensorlayer/HyperPose · hyperpose/Config/__init__.py:455
def set_dataset_filter(dataset_filter):
'''set the user defined dataset filter
set the dataset filter as the input function.
to uniformly format different dataset,
Hyperpose organize the annotations of one image in one dataset in the similiar meta classes.
for COCO dataset, it is COCOMeta; for MPII dataset, it is MPIIMeta.
Meta classes will have some common information such as image_id, joint_list etc,
they also have some dataset-specific imformation, such as mask, is_crowd, headbbx_list etc.
the dataset_fiter will perform on the Meta objects of the corresponding dataset, if
it returns True, the image and annotaions the Meta object related will be kept,
otherwise it will be filtered out. Please refer the Dataset.xxxMeta classes for better use.
Parameters
----------
arg1 : function
a function receive a meta object as input, return a bool value indicates whether