Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hackassin
GitHub Repository: hackassin/learnopencv
Path: blob/master/FaceMaskOverlay/lib/datasets/__init__.py
3443 views
1
# ------------------------------------------------------------------------------
2
# Copyright (c) Microsoft
3
# Licensed under the MIT License.
4
# Written by Tianheng Cheng([email protected])
5
# ------------------------------------------------------------------------------
6
7
from .aflw import AFLW
8
from .cofw import COFW
9
from .face300w import Face300W
10
from .wflw import WFLW
11
12
__all__ = ['AFLW', 'COFW', 'Face300W', 'WFLW', 'get_dataset']
13
14
15
def get_dataset(config):
16
17
if config.DATASET.DATASET == 'AFLW':
18
return AFLW
19
elif config.DATASET.DATASET == 'COFW':
20
return COFW
21
elif config.DATASET.DATASET == '300W':
22
return Face300W
23
elif config.DATASET.DATASET == 'WFLW':
24
return WFLW
25
else:
26
raise NotImplemented()
27
28
29