facebookresearch / vilbert-multi-task

Multi Task Vision and Language
MIT License
796 stars 180 forks source link

Non-existent config key: MODEL.BACKBONE.OUT_CHANNELS #25

Open gabrielilharco opened 4 years ago

gabrielilharco commented 4 years ago

Hi,

Following the visual feature extraction instructions, I'm running into the following issue:

Traceback (most recent call last): File "../vilbert-multi-task/script/extract_features.py", line 233, in feature_extractor = FeatureExtractor() File "../vilbert-multi-task/script/extract_features.py", line 30, in init self.detection_model = self._build_detection_model() File "../vilbert-multi-task/script/extract_features.py", line 76, in _build_detection_model cfg.merge_from_file(self.args.config_file) File "/home/gamaga/anaconda3/envs/multimodalqa/lib/python3.8/site-packages/yacs/config.py", line 213, in merge_from_file self.merge_from_other_cfg(cfg) File "/home/gamaga/anaconda3/envs/multimodalqa/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/gamaga/anaconda3/envs/multimodalqa/lib/python3.8/site-packages/yacs/config.py", line 460, in _merge_a_into_b _merge_a_into_b(v, b[k], root, key_list + [k]) File "/home/gamaga/anaconda3/envs/multimodalqa/lib/python3.8/site-packages/yacs/config.py", line 460, in _merge_a_into_b _merge_a_into_b(v, b[k], root, key_list + [k]) File "/home/gamaga/anaconda3/envs/multimodalqa/lib/python3.8/site-packages/yacs/config.py", line 473, in _merge_a_into_b raise KeyError("Non-existent config key: {}".format(full_key)) KeyError: 'Non-existent config key: MODEL.BACKBONE.OUT_CHANNELS'

From this issue it seems like that the config provided here might not be consistent with maskrcnn current code. Is there any particular version I should install?

gabrielilharco commented 4 years ago

See also here

vedanuj commented 4 years ago

Please follow the steps in readme here : https://github.com/facebookresearch/vilbert-multi-task/tree/master/data

The maskrcnn benchmark repo should be exatcly the same as provided in the readme.

doppelbeaver commented 4 years ago

Looking forward to this. I have the same problem

sufferjoy commented 4 years ago

I have the same problem, and seems that MODEL.BACKBONE.OUT_CHANNELS is not defined in the config of maskrcnn. Have you worked this out?

leyuan commented 4 years ago

The problem is due to the recent version of mask-rcnn repo, I used the version here: https://gitlab.com/vedanuj/vqa-maskrcnn-benchmark/-/tree/master

gabrielilharco commented 4 years ago

@leyuan, did you follow the instructions there on INSTALL.md? It seems it is just cloning the most recent maskrcnn-benchmark git repo. I noticed there is a maskrcnn-benchmark on the vqa-maskrcnn-benchmark repo, but setup.py

leyuan commented 4 years ago

Hi @gabrielilharco, I think I saw that instruction somewhere when I first tried it and worked. I realize now it is not the same, I also went down the path of using the github repo but didn't work, so I just stick with that gitlb repo.

dixonhsiao commented 4 years ago

Hi @leyuan , so which maskrcnn checkout did you use exactly ? I have exactly the same problem...

seo-95 commented 4 years ago

Hi @leyuan , so which maskrcnn checkout did you use exactly ? I have exactly the same problem...

I solved by installing the other repo:

$ git clone https://gitlab.com/vedanuj/vqa-maskrcnn-benchmark.git
$ cd vqa-maskrcnn-benchmark/
$ python setup.py build develop
Jack-lx-jiang commented 4 years ago
$ git clone https://gitlab.com/vedanuj/vqa-maskrcnn-benchmark.git
$ cd vqa-maskrcnn-benchmark/
$ python setup.py build develop

I used these commands to install, but unfortunately still got the same error. Any ideas what happened?

Jack-lx-jiang commented 4 years ago

sorry, I made a stupid mistake..... uploaded a wrong project to the server.... so, just ignore my last comment.