Run generates massive amount of channels, causing QGIS to crash #101
-
I don't have experience with Python so i've tried an easier way to predict an orthophoto with custom model but haven't gotten it to work like when i test your test models. See workflow below.
I've searched around and tried a bunch of things. I want to try to export to tensorflow/pytorch and from there export to .onnx but cant figure out how to point to a local path. I don't understand the checkpoint/hub thing. I've tried changing metadata on the .onnx using python script but it didn't change the amount of channels. Cant find the script mentioned in Docs and not 100% on the instructions. My orthophoto is RGBA and been wondering if that's a problem. Though, when i use included model I can detect cars on a orthophoto with RGBA. Would love some advice what to try. Maybe needs a metadata/config adjustment? Help on how to convert exported local tensorflow (.pb) and pytorch (.pt) to .onnx would also be appreciated. Thanks for your work! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Wow! Amazing that you could fix it. Thank you SO much! I've done a little testing and this fix also worked great for a model trained with Yolov8m. The only bug i found so far was that restricting input layer with polygon caused the inference to not find any trees. This is no biggie, but maybe worth mentioning.
I'm gonna try and see if I can change metadata again. Is it correct that you paste the text table from the docs into a notepad++, adjust settings, save as .py and then run it? And i couldn't figure out if m2 key and value be left as default?
Trying to inference with a sliding window on your own without python experience wasn't going to good. This plugin put ends to that and everyone who wants to deploy in orthophoto environment can with some computer experience. Again, thank you! Gotta love open source |
Beta Was this translation helpful? Give feedback.
-
Bumping the thread because I found another error. I trained a multi class object detector with the same tools and architecture which creates the same issue with massive amount of channels. Model + .tif from google drive below. https://drive.google.com/file/d/1GMZzCz9CGaC_N6axl5NvVAIzliEaOw70/view?usp=sharing Would love some tips on how to change metadata. I've tried to understand the docs but i fail. What am I doing wrong?
|
Beta Was this translation helpful? Give feedback.
Hi,
Anyway, fortunately, I managed to extend the plugin code to handle your model output.
And your model works quite well! It found 375 trees on your orthophoto!
I see you set the default resolution in the model parameter as 2 cm per pixel. Though you wrote "Cant find the script mentioned in Docs and not 100% on the instructions." - can you please point to this place in the documentation so we can update it?
It will take time to release a new Deepness version, but you can do…