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

[ERROR] Unknown algorithm gog, using default... #109

Closed gnaegit closed 6 months ago

gnaegit commented 6 months ago

I followed the instructions here to test the GoG algorithm. To install pycoral i followed the instructions here: python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ pycoral~=2.0 When running (owl) pi@raspberrypi:~/owl $ python owl.py --show-display --algorithm gog I got the following output

[INFO] Setting up nozzles...
[INFO] Nozzle setup complete. Initiating camera...
[INFO] Camera setup complete. Settings: 
Resolution: (416, 320)
Framerate: 40
Exposure Mode: beach
AutoWhiteBalance: auto
Exposure Compensation: -4
Sensor Mode: 0
 Nozzle 1    Nozzle 2    Nozzle 3    Nozzle 4 
                                              [ERROR] Unknown algorithm gog, using default...
[INFO] Using ssd_mobilenet_v2_coco_quant_postprocess_edgetpu model...

[ALGORITHM ERROR] Error while starting algorithm: gog.
Error message: Failed to load delegate from libedgetpu.so.1

stating that the algorithm gog is unknown.

Is this issue known?

geezacoleman commented 6 months ago

The error [ERROR] Unknown algorithm gog, using default... is a quirk of the way I've tried to better capture errors. It tried to look for a model file called gog but can't find it, so it then defaults to the first one in the directory. That isn't likely to be the error here, because it then loads ssd_mobilenet_v2_coco_quant_postprocess_edgetpu - is this the model you want to use?

Failed to load delegate from libedgetpu.so.1 is likely causing the issues. I would recommend reading through this tensorflow issue and trying some of their solutions:

  1. make sure the Google Coral is connected
  2. restart the device after installing
  3. changes to udev rules that may or may not have happened.

Let me know how this goes for you. I'll fix that gog error though.

gnaegit commented 6 months ago

Thanks for the fast response and the guidance. Unplugging and replugging the Google Coral did the job. I'm pretty sure the Google Coral was plugged in before, as the LED was turned on.

geezacoleman commented 6 months ago

No worries - glad you could get it sorted. i'll leave this open until I fix that other gog error. What sort of models are you looking to run with it?

gnaegit commented 6 months ago

We are from a Swiss university of applied sciences. We don't have any specific ideas yet and would like to use the system in research and teaching.

geezacoleman commented 6 months ago

That's great to hear, let me know if there's anything I can do to help. There should be a lot more frequent updates and improvements next year.

geezacoleman commented 6 months ago

Have fixed these error messages and model loading in #110 . Have also included a default model in the models directory. I'll close this issue now, but feel free to open another or add in here if needed.