Path: blob/master/FaceMaskOverlay/lib/datasets/__init__.py
3443 views
# ------------------------------------------------------------------------------1# Copyright (c) Microsoft2# Licensed under the MIT License.3# Written by Tianheng Cheng([email protected])4# ------------------------------------------------------------------------------56from .aflw import AFLW7from .cofw import COFW8from .face300w import Face300W9from .wflw import WFLW1011__all__ = ['AFLW', 'COFW', 'Face300W', 'WFLW', 'get_dataset']121314def get_dataset(config):1516if config.DATASET.DATASET == 'AFLW':17return AFLW18elif config.DATASET.DATASET == 'COFW':19return COFW20elif config.DATASET.DATASET == '300W':21return Face300W22elif config.DATASET.DATASET == 'WFLW':23return WFLW24else:25raise NotImplemented()26272829