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

How can i generate label.tsv? #19

Open
brightbsit opened this issue Feb 12, 2021 · 5 comments
Open

How can i generate label.tsv? #19

brightbsit opened this issue Feb 12, 2021 · 5 comments

Comments

@brightbsit
Copy link

❓ 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?

@brightbsit brightbsit changed the title Can i generate label.tsv? How can i generate label.tsv? Feb 12, 2021
@yezhengli-Mr9
Copy link

yezhengli-Mr9 commented Feb 12, 2021

❓ 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
Copy link
Author

brightbsit commented Feb 15, 2021

@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
Copy link

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

@yezhengli-Mr9
Copy link

yezhengli-Mr9 commented Feb 15, 2021

❓ 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
Copy link

@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

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

3 participants