-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path__init__.py
20 lines (17 loc) · 905 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# ------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License")
# ------------------------------------------------------------------------
# Modified from DETR (https://github.com/facebookresearch/detr)
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# ------------------------------------------------------------------------
from .hico import build as build_hico
from .hoia import build as build_hoia
from .vcoco import build as build_vcoco
def build_dataset(image_set, args, test_scale=-1):
assert args.dataset_file in ['hico', 'vcoco', 'hoia'], args.dataset_file
if args.dataset_file == 'hico':
return build_hico(image_set, test_scale)
elif args.dataset_file == 'vcoco':
return build_vcoco(image_set, test_scale)
else:
return build_hoia(image_set, test_scale)