DeepForest ONNX model #124
Unanswered
matismatis
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi @matismatis! |
Beta Was this translation helpful? Give feedback.
1 reply
-
I did a write up a while ago that might suit you. I also made a model for
detecting trees. You can upload your dataset to roboflow and annotate
there. Then export to ultralytics to train a YOLO model and export to ONNX.
Don't know if your annotations will follow along your dataset but roboflow
has a "magic select" which is powered by Metas segment anything and would
make it much quicker to redo at least. See link below.
qgis-plugin-deepness/tutorials/detection/Deploy_object_detection_model_with_Deepness_without_a_single_line_of_code.pdf
at devel · PUTvision/qgis-plugin-deepness · GitHub
<https://github.com/PUTvision/qgis-plugin-deepness/blob/devel/tutorials/detection/Deploy_object_detection_model_with_Deepness_without_a_single_line_of_code.pdf>
Cheers
Den lör 2 dec. 2023 kl 00:52 skrev matismatis ***@***.***>:
… Thank you very much! I see, I didn't read the model requirements properly.
Would it be possible to use the large dataset that was also used in
DeepForest to train a YOLO model? That would save me a lot of work marking
trees.
I tried to acces the guide on making a model in python
(./tutorials/detection/cars_yolov7/car_detection__prepare_and_train.ipynb),
however, I could not open the file (An error occurred Using nbformat v5.8.0
and nbconvert v7.3.1).
Again, thank you for your help.
—
Reply to this email directly, view it on GitHub
<#124 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBW74YUJ3OKG3OXE2DGWESTYHJUSZAVCNFSM6AAAAABADIF4LWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TOMZVGA3DA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <PUTvision/qgis-plugin-deepness/repo-discussions/124/comments/7735060@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am Matis, a forestry student interested in GIS/remote sensing. I made my own orthophoto map with a drone, and I want to detect the trees. I wanted to use DeepForest within Deepness for this. The plugin Deepness seemed a perfect plugin for me, as I don't have a lot of python experience.
I tried to convert the model from DeepForest (PyTorch) to ONNX. Here is the link to the model that I want to convert: https://github.com/weecology/DeepForest/blob/main/deepforest/model.py
I have the code in the attached as a text file.
DeepForest_PyTorch_to_ONNX.txt
However, I got this error notification from Deepness/QGIS;
''Error! Failed to load the model!
Model may not be usable.
Exception: Model with multiple output layer is not supported! Use only one output layer.''
As I said I am still inexperienced to programming/GIS in general, so sorry if this is a low effort/simple question. Any help would greatly be appreciated!
Edit: I tried adding a ZIP file of the ONNX that I created, but it seems to be too large.
Best regards,
Matis
Beta Was this translation helpful? Give feedback.
All reactions