facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
29.3k stars 7.32k forks source link

missing config key error #5269

Closed yanchuqiao closed 1 month ago

yanchuqiao commented 2 months ago

I am facing this error: Saving features to: /home/ubuntu/feature_extraction/Char_summ_image_features/features/features_test_boxes36.h5 Config '/home/ubuntu/feature_extraction/py-bottom-up-attention/configs/VG-Detection/faster_rcnn_R_101_C4_attr_caffemaxpool.yaml' has no VERSION. Assuming it to be compatible with latest v2. Traceback (most recent call last): File "vistext_proposal.py", line 84, in extract(output_fname, dataloader, desc) File "/home/ubuntu/feature_extraction/detectron2_proposal_maxnms.py", line 164, in extract detector = build_model() File "/home/ubuntu/feature_extraction/detectron2_proposal_maxnms.py", line 140, in build_model cfg.merge_from_file(os.path.join( File "/home/ubuntu/miniconda3/envs/feature_extractor/lib/python3.8/site-packages/detectron2/config/config.py", line 54, in merge_from_file self.merge_from_other_cfg(loaded_cfg) File "/home/ubuntu/miniconda3/envs/feature_extractor/lib/python3.8/site-packages/fvcore/common/config.py", line 123, in merge_from_other_cfg return super().merge_from_other_cfg(cfg_other) File "/home/ubuntu/miniconda3/envs/feature_extractor/lib/python3.8/site-packages/yacs/config.py", line 217, in merge_from_other_cfg _merge_a_into_b(cfg_other, self, self, []) File "/home/ubuntu/miniconda3/envs/feature_extractor/lib/python3.8/site-packages/yacs/config.py", line 478, in _merge_a_into_b _merge_a_into_b(v, b[k], root, key_list + [k]) File "/home/ubuntu/miniconda3/envs/feature_extractor/lib/python3.8/site-packages/yacs/config.py", line 491, in _merge_a_into_b raise KeyError("Non-existent config key: {}".format(full_key)) KeyError: 'Non-existent config key: MODEL.CAFFE_MAXPOOL'

I tried with all of detectron2-0.4 future-1.0.0 fvcore-0.1.3.post20210317 pydot-2.0.0 / detectron2-0.5 / detectron2-0.6

github-actions[bot] commented 2 months ago

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

github-actions[bot] commented 1 month ago

Requested information was not provided in 7 days, so we're closing this issue.

Please open new issue if information becomes available. Otherwise, use github discussions for free-form discussions.