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.

Question about the failure to run the demo (KeyError: 'Non-existent config key: BACKBONE.LAYERS')

See original GitHub issue

(下面有中文版) Such as the title,when I want to run the “tools/demo.py” often return such errors

Traceback (most recent call last): File "tools/demo.py", line 109, in <module> main() File "tools/demo.py", line 60, in main cfg.merge_from_file(args.config) File "/home/winer/.conda/envs/pysot/lib/python3.7/site-packages/yacs/config.py", line 213, in merge_from_file self.merge_from_other_cfg(cfg) File "/home/winer/.conda/envs/pysot/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/winer/.conda/envs/pysot/lib/python3.7/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/winer/.conda/envs/pysot/lib/python3.7/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: BACKBONE.LAYERS'

I have downloaded the model and put it in the corresponding directory. And also tried running in python 3.6 and python 3.7 as well as Ubuntu 16 and Ubuntu 18, but all failed. Can you help me solve this problem? Oh, since I only have one computer at the moment, so I am running the code in the VM. There is no way to provide a separate GPU for it. I don’t know if this affects the code.

Thank you so much!


换回中文再写一遍,毕竟英语水平仍有待提升…

如题,每次在运行demo.py的代码时候都会报这个错 KeyError: 'Non-existent config key: BACKBONE.LAYERS' 已经按照说明里面配置好了环境,要下载的model也都下载过了但是还是不行。也在python36/37还有Ubuntu16/18全都试验过了,没一个能跑的,每次都是这么一个错误,其他地方也没找到解决方法。这个代码我是在VM里面跑的所以没办法给独立显卡,但是我看上面好像还用了CUDA,不知道有没有影响?

如果有人能解决这个问题还请指点,谢谢!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
boruibocommented, Sep 11, 2019

不能用百度云下载的config.yaml,要用程序自带的。 替换experiments的模型时要注意。

0reactions
winerchancommented, Sep 12, 2019

不能用百度云下载的config.yaml,要用程序自带的。 替换experiments的模型时要注意。

谢谢!也是刚刚发现问题所在,打算上来加个标注的时候看到了你的回复。这个方法确实有效,好像作者更新了项目里的config.yaml,但是百度云的没更新,用程序里的就好了。 再次感谢!

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError: 'Non-existent config key: BACKBONE.LAYERS' #178
I install pysot twice. First I follow the guide in install.md. I activate conda environments and pip packages. Second time I bash the...
Read more >
latest PDF - MMDetection's documentation!
Verify the inference demo. Option (a). If you install mmdetection from source, just run the following command.
Read more >
sitemap-questions-44.xml - Stack Overflow
... 2021-12-23 https://stackoverflow.com/questions/3961742/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-in 2021-12-22 ...
Read more >
Ubuntu Manpage: salt - Salt Documentation
Run the following command to import the SaltStack repository key: wget -O ... the backbone to Salt configuration management and many other aspects...
Read more >
Train Deep Learning Model fails with KeyError: '0'
The model I am trying to use in the Mask R-CNN. I used the Export Training Data for Deep Learning function in ArcGis...
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