-
Notifications
You must be signed in to change notification settings - Fork 8
Adding a simple Ansible playbook and some updated notes/requirements, for easy deployment of monitor_run.py #3
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
Conversation
…ence of existing model on RPi.
…/deployment guide.
…g yolov5 submodule to same commit as on vespai main branch.
Hy, works so far with Rasbian 64, but: And with ansible the installation of opencv won't work. We had to install it manually with pip "opencv-python-headless" Regards Walter & Sebastian |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The three new additions are extremely useful, thanks for the contribution. Amendments to monitor_run.py lgtm.
I've written a basic Ansible playbook to automate (and document) some of the setup/configuration steps required to get the
monitor_run.py
script running on a Raspberry Pi with the provided yolov5 model. There is also a short README which outlines how to run the playbook.For those who prefer to configure things manually, the playbook YAML file together with the revised
requirements.txt
file effectively documents the steps/tasks and required dependencies. This may also help resolve/workaround issue #1.All the new files are in a new
deploy
directory and I've only made minor changes to themonitor.py
script, namely:filetype
instead ofimghdr
, because the latter is being deprecated ref. PEP 594.results.ims
instead ofresults.imgs
, because the yolov5Detections
class renamed its image-list property in ImprovedProfile()
inference timing ultralytics/yolov5#9024.Hope this helps! I'm looking forward to receiving any comments/suggestions or questions. :-)
Tom