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

QGIS plugin deepness devel "This plugin is broken Missing metadata file" #191

Open
udaf-mcq opened this issue Oct 31, 2024 · 7 comments
Open

Comments

@udaf-mcq
Copy link

I have attempted to install the Deepness plugin in QGIS. After installation I get "qgis-plugin-deepness-devel" below the Deepness: Deep Neural Remote Sensing listing. It is in RED. After clicking on the "qgis-plugin-deepness-devel" the large screen to the right states "This plugin is broken, Missing metadata file qgis-plugin-deepness-devel"

What is needed to get this plugin installed and working?

@bartoszptak
Copy link
Contributor

Hi @udaf-mcq,
Please describe your workflow and the goal you want to reach.

@udaf-mcq
Copy link
Author

udaf-mcq commented Nov 1, 2024 via email

@przemyslaw-aszkowski
Copy link
Contributor

Hi @udaf-mcq,
You would need to train a model tailored to your needs. In the plugin documentation, you can find a document describing how to do it without programming knowledge.

Regarding the issue you are having with installing the plugin - please describe what operating system are you using, what QGIS version and how you are installing the plugin.

@udaf-mcq
Copy link
Author

udaf-mcq commented Nov 1, 2024

Since my post that you replied to I have been trying to reinstall. The plugin loads but give error failed to load model. I was trying to load Detector.

I am on a Windows 10 machine with QGIS 3.34.12-Prizren

Here is the error message from the log file:
traceback: File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\deepness_dockwidget.py", line 258, in _browse_model_path
self._load_model_and_display_info()
File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\deepness_dockwidget.py", line 363, in _load_model_and_display_info
self._model = self._load_model_with_type_from_metadata(
File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\deepness_dockwidget.py", line 334, in _load_model_with_type_from_metadata
model_type_str_from_metadata = ModelBase.get_model_type_from_metadata(file_path)
File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\processing\models\model_base.py", line 65, in get_model_type_from_metadata
model = cls(model_file_path)
File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\processing\models\model_base.py", line 37, in init
self.sess = ort.InferenceSession(self.model_file_path, options=options, providers=providers)
File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session
providers, provider_options = check_and_normalize_provider_args(
File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 103, in check_and_normalize_provider_args
set_provider_options(provider, dict())
File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 69, in set_provider_options
warnings.warn(

2024-11-01T15:18:46 WARNING warning:UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'

         traceback: File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\deepness_dockwidget.py", line 258, in _browse_model_path
          self._load_model_and_display_info()
          File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\deepness_dockwidget.py", line 363, in _load_model_and_display_info
          self._model = self._load_model_with_type_from_metadata(
          File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\deepness_dockwidget.py", line 334, in _load_model_with_type_from_metadata
          model_type_str_from_metadata = ModelBase.get_model_type_from_metadata(file_path)
          File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\processing\models\model_base.py", line 65, in get_model_type_from_metadata
          model = cls(model_file_path)
          File "C:\Users/mquilter/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deepness\processing\models\model_base.py", line 37, in __init__
          self.sess = ort.InferenceSession(self.model_file_path, options=options, providers=providers)
          File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in __init__
          self._create_inference_session(providers, provider_options, disabled_optimizers)
          File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session
          providers, provider_options = check_and_normalize_provider_args(
          File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 103, in check_and_normalize_provider_args
          set_provider_options(provider, dict())
          File "C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\python3.12\onnxruntime\capi\onnxruntime_inference_collection.py", line 69, in set_provider_options
          warnings.warn(

@przemyslaw-aszkowski
Copy link
Contributor

What model are you trying to load? "Detector" is just a class of models, so I meant the model file path you selected. Can you share the model you used?

@udaf-mcq
Copy link
Author

udaf-mcq commented Nov 1, 2024

C:\Users\mquilter\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\deepness\processing\models\detector.py

The models in the models directory are: init.py, detector.py, model_base.py, model_base.py, model_types.py,
prepocessing_utils.py, recognition.py, regressor.py, segmentor.py, and superresolution.py.

@przemyslaw-aszkowski
Copy link
Contributor

But you need to select a file with the model in the plugin, here:
image

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

3 participants