-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Green on green #142
Comments
Thanks for giving this a go! As you've probably found out unfortunately Google has not updated the PyCoral library for the Coral in some time. There are a few options you can try that have been developed by the community. What are your specific errors? Can you screenshot/copy paste them here? Which dataset are you using or is it one you've developed yourself? There's a great video explaining the set up process by the YouTuber Jung. This thread on the issue (google-coral/pycoral#137) also provides some options to run it with post 3.9 versions of Python. The issue with backdating python is you'll run into compatibility issues with picamera2 I think and other packages. I explain a bit more about the situation/plans in #141. When I set up GoG support for the OWL with the Coral and PyCoral I assumed there would be ongoing support for the hardware/software. Unfortunately it seems that isn't the case and the community is moving toward other options like the Hailo AI Kit. The Raspberry Pi 5 can run small models at moderate FPS, but having the additional hardware like the Hailo chip using the PCIe connection greatly improves speed. I'd recommend upgrading to a Pi 5 if you want to run GoG models in the future - it will be much better supported/faster. |
I have tried back dating the raspberry pi!!! I kinda wrote a script that sets up setting up python 3.9 in its own environment to run the coral (env-coral) in and use the rest of owl to run in the owl in (owl) I got it running once thought I got it right had camera up detecting weeds in my lawn thought I solved it then reset raspberry pi and kept saying I have to install open cv and a few and can’t get it to run again |
Also yes I made a custom data set!! I working on a couple of data sets I’m finding that rather then naming each individual weed I just make a class that is one class which is (weed1) and make a dataset for the crop condition!!! Let’s say it is a pasture and wanting to remove broad leaf weeds!! I’d have the model for that!!! My theory is in the future is that maybe make data sets that are chemical related!!! also going to add the way i sort of got GOG to work for the short time it did this is the code to set up env for coral does need refining i have to install with sudo and i think my problems are permission related #!/bin/bash Function to check the exit status of the last executed commandcheck_status() { Trap to catch errors and print a message before exitingtrap 'echo "[ERROR] An error occurred during the installation. Please check the logs above for more details."; exit 1' ERR Create environment directory in the current script locationENV_DIR=$(pwd)/env Set up Coral repository and install Edge TPU runtime using sudoecho "[INFO] Setting up Coral repository and installing Edge TPU runtime..." Ask the user whether to install the standard or max operating frequency version of the Edge TPU runtimeecho "Do you want to install with MAX OPERATING FREQUENCY? This will increase framerate but also device temperature and power consumption." Install Python environment toolsecho "[INFO] Installing Python environment tools (curl, virtualenv)..." Install pyenv for managing Python versionsecho "[INFO] Installing pyenv for Python version management..." Install Python 3.9 using pyenvecho "[INFO] Installing Python 3.9 via pyenv. This may take a while..." Create and activate a virtual environment using the specific Python versionecho "[INFO] Creating and activating the virtual environment..." Install pycoralecho "[INFO] Installing pycoral..." echo "[INFO] Coral environment setup is complete." this file is changed in the /utils green on green #!/usr/bin/env python class GreenOnGreen:
Example Usage:Assuming the environment path is correct and points to your Coral setupgog = GreenOnGreen(env_path='/home/bass/env/coral_env') this code operates the normal python 3.11 and runs the env at 3.9 i know its a work around but there is a bit in the setup that works around the coral it wont work if you install the env manually.. i just having trouble with permissions now and trying to work around that |
This is really neat! Thank you for sharing the process and my apologies for not responding sooner or for being much help! It looks like you've got it sorted far better than I could have in any case. Your dataset sounds great - I have found that grouping very different weeds together may negatively impact model training, because of the diversity in appearance that the weeds present. Depends on the context and crop/background however. I have also found the opposite, where too many classes of very similar classes can result in poorer training, so I think there is a middle ground. Do you have some examples? GoG will be a focus for me in the next 6 months starting from late September, so expect there to be a lot more support for it and updates. The idea is to update the openweedlocator-tools package and use that as the base for the main OWL repository. That way functions can be run independently and interact better with a GUI too. Thanks again for sharing! |
yeah i trained and retrained the model with the likes clover mash mellow weed and that for a trial... just with weeds and that around the house in my area but had like 1500 photos and i hated sitting there trying to put a box over every weed haha |
Trying to figure out how to install coral on raspberrypi 4 using python 3.12!!! I tried back dating the python but run into trying to troubleshoot why the code not running with everything required and paths set up correctly!!! Any suggestions?? I have a data set here that seems to work well in pasture on laptop on my own script over a video!! Any suggestions
The text was updated successfully, but these errors were encountered: