This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
ValueError: Model name MyModel was not found in search namespaces: ['InnerEye.ML.configs']. #817
Answered
by
ant0nsc
Med-Rokaimi
asked this question in
Q&A
-
Hey, class MyGlaucomaModel(GlaucomaPublic): def __init__(self) -> None: super().__init__() local_dataset=full_ml_test_data_path(), self.azure_dataset_id="glaucoma_detection", When I try to run the model by this command: python InnerEye/ML/runner.py --model=MyGlaucomaModel I got this error: Starting InnerEye runner at InnerEye/ML/runner.py Adding InnerEye folder to sys.path: /home/ai/InnerEye-DeepLearning Setting up logging to stdout. Setting logging level to 20 (INFO) 2022-10-25T16:48:21Z INFO rpdb is handling traps. To debug: identify the main runner.py process, then as root: kill -TRAP <process_id>; nc 127.0.0.1 4444 2022-10-25T16:48:21Z WARNING (from attempt to import module InnerEye.ML.configs.MyGlaucoma): name 'full_ml_test_data_path' is not defined 2022-10-25T16:48:21Z WARNING (from attempt to import module InnerEye.ML.configs.classification.GlaucomaPublic): cannot import name 'GlaucomaPublic' from partially initialized module 'InnerEye.ML.configs.classification.GlaucomaPublic' (most likely due to a circular import) (/home/ai/InnerEye-DeepLearning/InnerEye/ML/configs/classification/GlaucomaPublic.py) Traceback (most recent call last): File "InnerEye/ML/runner.py", line 467, in <module> main() File "InnerEye/ML/runner.py", line 461, in main run(project_root=fixed_paths.repository_root_directory(), File "InnerEye/ML/runner.py", line 457, in run return runner.run() File "InnerEye/ML/runner.py", line 215, in run self.parse_and_load_model() File "InnerEye/ML/runner.py", line 164, in parse_and_load_model config_or_container = model_config_loader.create_model_config_from_name(model_name=azure_config.model) File "/home/ai/InnerEye-DeepLearning/InnerEye/ML/utils/config_loader.py", line 132, in create_model_config_from_name raise ValueError( ValueError: Model name MyGlaucomaModel was not found in search namespaces: ['InnerEye.ML.configs']. Can you please help me? I |
Beta Was this translation helpful? Give feedback.
Answered by
ant0nsc
Oct 27, 2022
Replies: 1 comment
-
@Med-Rokaimi, the problem is that the Python code can't be imported. Look at the two warnings:
You need to fix those 2 errors before you will be able to proceed. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Med-Rokaimi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Med-Rokaimi, the problem is that the Python code can't be imported. Look at the two warnings:
You need to fix those 2 errors before you will be able to proceed.