def build_detection_test_loader(cls, cfg, dataset_name, mapper=None): logger.info( "Building detection test loader for dataset: {} ...".format( dataset_name)) mapper = mapper or cls.get_mapper(cfg, is_train=False) logger.info("Using dataset mapper:\n{}".format(mapper)) return d2_build_detection_test_loader(cfg, dataset_name, mapper=mapper)
def build_detection_test_loader(cls, cfg, dataset_name: Union[str, List[str]], mapper=None): logger.info( "Building detection test loader for dataset: {} ...".format( dataset_name)) with enable_disk_cached_dataset(cfg): mapper = mapper or cls.get_mapper(cfg, is_train=False) logger.info("Using dataset mapper:\n{}".format(mapper)) return d2_build_detection_test_loader(cfg, dataset_name, mapper=mapper)
def build_detection_test_loader(cls, *args, **kwargs): return d2_build_detection_test_loader(*args, **kwargs)