Entity icon indicating copy to clipboard operation
Entity copied to clipboard

AssertionError: No valid data found in coco_2017_train_entity.

Open longlizhi opened this issue 3 years ago • 2 comments

Hi, why do I get this error when I run the coco instance_2017 dataset with the source program? This error is as follows

Traceback (most recent call last): File "/home/hndx/detectron2-main/detectron2/projects/EntitySeg/train_net.py", line 81, in args=(args,), File "/home/hndx/detectron2-main/detectron2/engine/launch.py", line 82, in launch main_func(*args) File "/home/hndx/detectron2-main/detectron2/projects/EntitySeg/train_net.py", line 67, in main trainer = Trainer(cfg) File "/home/hndx/detectron2-main/detectron2/engine/defaults.py", line 378, in init data_loader = self.build_train_loader(cfg) File "/home/hndx/detectron2-main/detectron2/projects/EntitySeg/train_net.py", line 33, in build_train_loader return build_detection_train_loader(cfg, mapper) File "/home/hndx/detectron2-main/detectron2/config/config.py", line 207, in wrapped explicit_args = _get_args_from_config(from_config, *args, **kwargs) File "/home/hndx/detectron2-main/detectron2/config/config.py", line 245, in _get_args_from_config ret = from_config_func(*args, **kwargs) File "/home/hndx/detectron2-main/detectron2/data/build.py", line 350, in _train_loader_from_config proposal_files=cfg.DATASETS.PROPOSAL_FILES_TRAIN if cfg.MODEL.LOAD_PROPOSALS else None, File "/home/hndx/detectron2-main/detectron2/data/build.py", line 278, in get_detection_dataset_dicts assert len(dataset_dicts), "No valid data found in {}.".format(",".join(names)) AssertionError: No valid data found in coco_2017_train_entity.

longlizhi avatar Jul 30 '22 00:07 longlizhi

Hi, could you provide the running config with me? It is so hard to detect the bug.

qqlu avatar Jul 30 '22 01:07 qqlu

Thanks, sorry for not replying to your message in time, I've been a bit busy these days. First of all, I configured the network environment based on the readme file given in the author's article, and I think this should be fine. In addition, when I configured the coco dataset, I found that the dataset was too big, so I didn't download it. I would like to ask if there is any way to know that there is no network error without configuring the original coco dataset.

longlizhi avatar Aug 02 '22 00:08 longlizhi