geezacoleman / OpenWeedLocator

An open-source, low-cost, image-based weed detection device for in-crop and fallow scenarios.
MIT License
320 stars 56 forks source link

Model deployment #118

Open zerosnsa opened 5 months ago

zerosnsa commented 5 months ago

I am training the model according to the example, but I keep showing this error when I deploy it. The model works fine if I use my own computer locally image

zerosnsa commented 5 months ago

I used the generic model and it worked fine on the Raspberry PI

geezacoleman commented 5 months ago

Awesome that you got the YOLOv8-N working correctly at 416 x 320 resolution. Do you mind sharing how you did that? I've read that it would only work at 192 x 192 resolution.

I found this issue on the pycoral page about the error you receive. It appears it's a power supply issue? Do you have a powered USB hub available?

zerosnsa commented 5 months ago

But did I just run to report this error? And when I run the sample model, it works fine, but when I run my own trained model, this error occurs.

zerosnsa commented 5 months ago

Isn't this resolution set in the code? I didn't change the add resolution operation

geezacoleman commented 5 months ago

Probably a few issues here - which sample model are you using? and what resolution are you training your custom model at? You should make sure the resolution set with owl.py matches the trained model resolution.

There are issues exporting from YOLOv8 using their export function, unless you train and set it to 192 x 192.

zerosnsa commented 5 months ago

1706083787640 I could use all the three models smoothly, except that EfficientDet-Lite3x* could not be used.