-
Notifications
You must be signed in to change notification settings - Fork 118
Modify inference and centroid model to allow Bonsai ingestion #850
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
Codecov Report
@@ Coverage Diff @@
## develop #850 +/- ##
===========================================
+ Coverage 67.40% 67.59% +0.18%
===========================================
Files 130 130
Lines 22110 22187 +77
===========================================
+ Hits 14903 14997 +94
+ Misses 7207 7190 -17
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
tests/nn/test_inference.py
Outdated
| @pytest.mark.skip | ||
| def test_save(model, preds, output_path): |
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.
Pytest will treat any function starting with test_ or ending with _test as a test. If you would like to define a helper function without it being considered a test, then renaming it works as well.
| None | ||
| """ | ||
|
|
||
| predictor = load_model(model_path) |
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.
This (and the Predictor classmethod constructor a couple of calls down the stack) needs to have logic to handle centroid-only inputs and know to create a CentroidInferenceModel instead of a topdown one for ground truthing.
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.
LGTM, let's give it a go
Description
Types of changes
Does this address any currently open issues?
[list open issues here]
Outside contributors checklist
Thank you for contributing to SLEAP!
❤️