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

Create plugin with trained YOLOv8 segmentation model #14

Open
falahatshahrzad opened this issue Feb 9, 2024 · 3 comments
Open

Create plugin with trained YOLOv8 segmentation model #14

falahatshahrzad opened this issue Feb 9, 2024 · 3 comments

Comments

@falahatshahrzad
Copy link

Hello;

I trained YOLOv8 segmentation model on custom dataset. I converted it to onnx file to create a custom buildseg plugin. My onnx file can load perfectly using python codes but it can not return any result in QGIS environment. Can you guide me how can I solve this problem?

Thank you for your guidance
Have a good time

@Youssef-Harby
Copy link
Member

Hello Shahrzad,
Can you please provide more details about how you "create a custom buildseg plugin" and also provide the versions of python, pip packages installed, QGIS and GDAL/OGR you are using ?

@falahatshahrzad
Copy link
Author

I converted the trained YOLOv8 model to onnx file and upload it in buildseg. It is necessary to say that YOLOv8 is trained in Pytorch framework. I know that buildseg models are trained in Paddlepaddle framework but I don't know how I can use the trained Pytorch models in it. Also, I used Ubuntu and python3.7 for this purpose.

@geoyee
Copy link
Member

geoyee commented Feb 14, 2024

@falahatshahrzad I think it might have some differences in pre-processing (e.g. parameters of normalization) or post-processing, and I think you can use infer code and your model to find what's going wrong.

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