question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-existent config key: MODEL.BACKBONE.OUT_CHANNELS

See original GitHub issue

I followed the installation instructions and everything went fine until wanted to test the pre-trained model by executing:

python tools/test_net.py --config-file ./configs/retina/retinanet_mask_R-50-FPN_2x_adjust_std011_ms.yaml MODEL.WEIGHT ./models/retinanet_mask_R-50-FPN_2x_adjust_std011_ms_model.pth MODEL.MASK_ON False

This leads to the following error:

Traceback (most recent call last):
  File "tools/test_net.py", line 100, in <module>
    main()
  File "tools/test_net.py", line 55, in main
    cfg.merge_from_file(args.config_file)
  File "/home/flo/anaconda3/envs/uav-challenge/lib/python3.6/site-packages/yacs/config.py", line 213, in merge_from_file
    self.merge_from_other_cfg(cfg)
  File "/home/flo/anaconda3/envs/uav-challenge/lib/python3.6/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
    _merge_a_into_b(cfg_other, self, self, [])
  File "/home/flo/anaconda3/envs/uav-challenge/lib/python3.6/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/flo/anaconda3/envs/uav-challenge/lib/python3.6/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/flo/anaconda3/envs/uav-challenge/lib/python3.6/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'

Any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
chengyangfucommented, Mar 6, 2019

Hi, How did you install the code? Looks like you install the different repository. MODEL.BACKBONE.OUT_CHANNELS is still valid in this repository but is removed in the master branch of maskrcnn-benchmark. Try to recompile the code. rm -rf build python setup.py build develop

2reactions
chengyangfucommented, Mar 14, 2019

Obviously, there is a different version of maskrcnn-benchmark in your pip. You need to remove it first and then run python setup.py build develop under the root directory of retinamask.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Non-existent config key: MODEL.BACKBONE.OUT_CHANNELS
Hi, Following the visual feature extraction instructions, I'm running into the following issue: Traceback (most recent call last): File ".
Read more >
mmdet.apis — MMDetection 2.25.1 documentation
Build a model from config and load the given checkpoint. ... NOTE: make sure that py_dict in different ranks has the same keys...
Read more >
Differentiable Network Pruning for Microcontrollers - arXiv
In this work, we present a differentiable structured network pruning method for convolutional neural networks, which integrates a model's MCU-specific resource ...
Read more >
Building Automation System over IP (BAS/IP) Design ... - Cisco
U sing D ynamic Host Configuration Protocol and D HCP Option 82 . ... I nformation Model: The Key to I ntegration. Craton,...
Read more >
maskrcnn-benchmark报错KeyError “Non-existent config key
maskrcnn-benchmark报错KeyError “Non-existent config key: MODEL.BACKBONE.OUT_CHANNELS“. ying wong 于 2021-08-20 16:36:14 发布 1999 收藏.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found