-
Notifications
You must be signed in to change notification settings - Fork 0
Animl update and wild_demo #59
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
Open
kgarwoodsdzwa
wants to merge
18
commits into
master
Choose a base branch
from
animl_update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updating wild demo to reflect master
Revert "updating wild demo to reflect master"
The demo branch was created hard and fast and these commits make the demo portion more modular in the sense that with merely a few extra lines to the config, you can make fetch_and_alert run the necessary portions to allow the output to be visualized. Currently, one must run this version of fetch_and_alert and simultaneously run display.py with the same config file as fetch and alert to work. display.py is the main function and visualize_helper.py contain some functions that get called in fetch_and_alert to ensure the images are in the proper place and format for display.py to reach them.
Was called visualize_output now called visualize_helper
The script was not writing the log to a file, only to the terminal and was logging duplicated lines. It needed to be initialized before calling the classifier and detector initializers because when those got called first, they introduced their own logging handlers that overrode the one I created. Also the force=True needed to be added so that the log file would actually be created
There's a few "too many variables" and "unable to import" errors but I'm ignoring those
We trained a new model 'southwest_v3.pt' that performs better on cougars than the previous model, but the animl-py on pypi can only handle h5 models. Cougarvision had to be updated to be compatible with the updates that have been made to animl-py on github where there exists the capability to use .pt models. It was mostly function name changes and movement, and the updates only affected fetch_and_alert.py for loading the classifier model and detect_img.py.
The example config file was missing some of the parameters needed by cougarvision wild_demo update. This config file now exposes the color for the bounding box, sending email alerts, the time between fetch_and_alert function call, and changed the names of the config values for dev and consumer emails.
There was an old animl function called parse_results that prepared the classification output for alert sending this has been depricated and that old function is no longer necessary
the example config needed to be updated to reflect changes
wild_demo had animl_update created based off wild_demo, need to be merged before pr to master
tkswanson
reviewed
Mar 27, 2024
Collaborator
tkswanson
left a comment
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.
did you get rid of the admin key? also you included our own camera names
tkswanson
reviewed
Mar 27, 2024
tkswanson
reviewed
Mar 27, 2024
tkswanson
reviewed
Mar 27, 2024
tkswanson
reviewed
Mar 27, 2024
tkswanson
reviewed
Mar 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this pull request reflects a few updates which should be in different pull requests, but they are in one. there is now capability to run a visualization of the output in a demo setting by changing a few config values, and allows for the usage of .pt classifier models. there is also logging to a file that now takes place.