-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Detectron2 throwing "Non-existent config key" error on CPU even though the key is present in config.yaml #5111
Comments
You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. |
Instructions To Reproduce the Issue:Trained model on a GPU enabled PC, then use trained model on CPU-only environment or non-GPU PC. Config.yaml
Training Script:
Training works fine on GPU computer, and model also detects fine on GPU. (Traceback):
|
Hey @rudyoactiv,
|
Thank you. This solved the problem for me |
Thankyou@rudyoactiv, Create an empty CfgNode object_C = CfgNode() Allow creating new keys recursively_C.set_new_allowed(True) Merge settings from a configuration file into the CfgNode objectfilename = "config.yaml" |
I have trained Detectron2 for Page Layout Detection on a PC with GPU and it is giving satisfactory results.
If I try to use the trained model on non-CUDA Detectron2 environment on same PC, or a non-GPU PC I get the error:
I have checked the config.yaml and it has:
I have tried using pre-trained models with the non-GPU PC and they perform fine, only my own model raises the error specifically on non-GPU systems. I need to be able to use the trained model on a non-GPU work laptop.
The text was updated successfully, but these errors were encountered: