Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: No valid data found in coco_2017_train_entity. #20

Open
longlizhi opened this issue Jul 30, 2022 · 2 comments
Open

AssertionError: No valid data found in coco_2017_train_entity. #20

longlizhi opened this issue Jul 30, 2022 · 2 comments

Comments

@longlizhi
Copy link

longlizhi commented Jul 30, 2022

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 longlizhi changed the title AssertionError: No valid data found in coco_2017_train_entity. AssertionError: No valid data found in coco_2017_train_entity. Jul 30, 2022
@qqlu
Copy link
Owner

qqlu commented Jul 30, 2022

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

@longlizhi
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants