airsplay / py-bottom-up-attention

PyTorch bottom-up attention with Detectron2
Apache License 2.0
229 stars 57 forks source link

How can i generate label.tsv? #19

Open brightbsit opened 3 years ago

brightbsit commented 3 years ago

❓ How to use Detectron2

Questions like:

I followed GETTING_STARTED.md. But it doesn't make a result file which include object's vector and label.

I want to get them. In this case, what can I do?

yezhengli-Mr9 commented 3 years ago

❓ How to use Detectron2

Questions like:

I followed GETTING_STARTED.md. But it doesn't make a result file which include object's vector and label.

I want to get them. In this case, what can I do?

Refers to detectron2_mscoco_proposal_maxnms.py suggested by various issues, including issue #6, etc.

brightbsit commented 3 years ago

@yezhengli-Mr9 I edit path but it happens.

`Config 'configs/VG-Detection/faster_rcnn_R_101_C4_caffemaxpool.yaml' has no VERSION. Assuming it to be compatible with latest v2.
Traceback (most recent call last):
  File "demo/detectron2_mscoco_proposal_maxnms.py", line 259, in <module>
    detector = build_model()
  File "demo/detectron2_mscoco_proposal_maxnms.py", line 243, in build_model
    D2_ROOT, "configs/VG-Detection/faster_rcnn_R_101_C4_caffemaxpool.yaml"))
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/site-packages/detectron2/config/config.py", line 54, in merge_from_file
    self.merge_from_other_cfg(loaded_cfg)
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/site-packages/fvcore/common/config.py", line 123, in merge_from_other_cfg
    return super().merge_from_other_cfg(cfg_other)
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
    _merge_a_into_b(cfg_other, self, self, [])
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/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/watermelon/anaconda3/envs/sibal/lib/python3.7/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'`
yezhengli-Mr9 commented 3 years ago

I tried 5-6 configs but only succeed alongside this demo/demo_feature_extraction_attr.ipynb.

yezhengli-Mr9 commented 3 years ago

❓ How to use Detectron2

Questions like:

I followed GETTING_STARTED.md. But it doesn't make a result file which include object's vector and label.

I want to get them. In this case, what can I do?

Actually, I have not investigated that we are talking about same *.tsvs. I just respond during leisure time. Please double check~ #4

yanchuqiao commented 4 months ago

@yezhengli-Mr9 I edit path but it happens.

`Config 'configs/VG-Detection/faster_rcnn_R_101_C4_caffemaxpool.yaml' has no VERSION. Assuming it to be compatible with latest v2.
Traceback (most recent call last):
  File "demo/detectron2_mscoco_proposal_maxnms.py", line 259, in <module>
    detector = build_model()
  File "demo/detectron2_mscoco_proposal_maxnms.py", line 243, in build_model
    D2_ROOT, "configs/VG-Detection/faster_rcnn_R_101_C4_caffemaxpool.yaml"))
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/site-packages/detectron2/config/config.py", line 54, in merge_from_file
    self.merge_from_other_cfg(loaded_cfg)
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/site-packages/fvcore/common/config.py", line 123, in merge_from_other_cfg
    return super().merge_from_other_cfg(cfg_other)
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
    _merge_a_into_b(cfg_other, self, self, [])
  File "/home/watermelon/anaconda3/envs/sibal/lib/python3.7/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/watermelon/anaconda3/envs/sibal/lib/python3.7/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'`

Hi, can I ask how did you solve it. same happens for me