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

demo using problems(使用demo时的问题) #14

Closed
lvyongting opened this issue Nov 13, 2022 · 2 comments
Closed

demo using problems(使用demo时的问题) #14

lvyongting opened this issue Nov 13, 2022 · 2 comments

Comments

@lvyongting
Copy link

I use the command “python demo/demo.py --config-file E:/TESTR-main/configs/TESTR/ICDAR15/TESTR_R_50_Polygon.yaml --input E:/TESTR-main/dataset/icdar2015/test_images/img_204.jpg --output E:/TESTR-main/output/ --opts MODEL.WEIGHTS E:/TESTR-main/models/icdar15_testr_R_50_polygon.pth MODEL.TRANSFORMER.INFERENCE_TH_TEST 0.3” to run the demo(that all are my private path)

but the problem always exit : KeyError: 'Non-existent config key: MODEL.TRANSFORMER'

and I don't konw which steps were wrong. If you can help me,I will be very Grateful.

作者您好,我按readme的步骤配置了相关环境,使用demo时一直报:KeyError: 'Non-existent config key: MODEL.TRANSFORMER'
经过一步一步排查,发现函数def _merge_a_into_b(a, b, root, key_list):里面的b没有MODEL.TRANSFORMER项,请问是我config配置错误还是环境安装错误亦或是其他我不知道的错误。

@lvyongting
Copy link
Author

image
the erro

@zx1239856
Copy link
Contributor

We're unable to reproduce the issue.

https://github.com/mlpc-ucsd/TESTR/blob/main/demo/demo.py#L22
setup_cfg uses the default configs from

_C.MODEL.TRANSFORMER.INFERENCE_TH_TEST = 0.45

which contains MODEL.TRANSFORMER.

I guess you may have loaded some other packages (e.g. the official AdelaiDet) and they don't have such config keys.

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