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

KeyError: 'Non-existent config key: MODEL.DFORMER' while running demo.py #7

Open
Ustinian-J opened this issue Aug 28, 2023 · 2 comments

Comments

@Ustinian-J
Copy link

When I try to run demo.py as showed in README.md, a problem occurred.
Details:

Traceback (most recent call last):
  File "demo.py", line 106, in <module>
    cfg = setup_cfg(args)
  File "demo.py", line 39, in setup_cfg
    cfg.merge_from_file(args.config_file)
  File "/home/jxh/detectron2/detectron2/config/config.py", line 69, in merge_from_file
    self.merge_from_other_cfg(loaded_cfg)
  File "/home/jxh/anaconda3/envs/dformer/lib/python3.8/site-packages/fvcore/common/config.py", line 132, in merge_from_other_cfg
    return super().merge_from_other_cfg(cfg_other)
  File "/home/jxh/anaconda3/envs/dformer/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/jxh/anaconda3/envs/dformer/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/jxh/anaconda3/envs/dformer/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.DFORMER'

Thank you for your answers.

@Shillin123
Copy link

Hi, have you solved the issue? I also have this problem while running demo

@Shillin123
Copy link

Hi, have you solved the issue? I also have this problem while running demo

I solved it, simply add "add_DFormer_config" to demo

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