def build_test_loader(cls, cfg, dataset_name): """ Returns: iterable It now calls :func:`fastreid.data.build_reid_test_loader`. Overwrite it if you'd like a different data loader. """ return build_reid_test_loader(cfg, dataset_name, Dataset=ClasDataset)
def build_test_loader(cls, cfg, dataset_name): dataset = DATASET_REGISTRY.get(dataset_name)(root=_root) attr_dict = dataset.attr_dict if comm.is_main_process(): dataset.show_test() test_items = dataset.test test_transforms = build_transforms(cfg, is_train=False) test_set = AttrDataset(test_items, test_transforms, attr_dict) data_loader, _ = build_reid_test_loader(cfg, test_set=test_set) return data_loader
def build_test_loader(cls, cfg, dataset_name): """ Returns: iterable It now calls :func:`fastreid.data.build_reid_test_loader`. Overwrite it if you'd like a different data loader. """ data = DATASET_REGISTRY.get(dataset_name)(root=_root) if comm.is_main_process(): data.show_test() transforms = build_transforms(cfg, is_train=False) test_set = ClasDataset(data.query, transforms) data_loader, _ = build_reid_test_loader(cfg, test_set=test_set) return data_loader
def build_test_loader(cls, cfg, dataset_name): dataset = DATASET_REGISTRY.get(dataset_name)(root=_root) test_set = TestFaceDataset(dataset.carray, dataset.is_same) data_loader, _ = build_reid_test_loader(cfg, test_set=test_set) return data_loader, test_set.labels