Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sheridana
Copy link
Contributor

Description

  • Add function to InferenceModel that allows saving to a frozen graph, for ingestion into a bonsai pipeline
  • Add standalone centroid model

Types of changes

  • Bugfix
  • New feature
  • Refactor / Code style update (no logical changes)
  • Build / CI changes
  • Documentation Update
  • Other (explain)

Does this address any currently open issues?

[list open issues here]

Outside contributors checklist

  • Review the guidelines for contributing to this repository
  • Read and sign the CLA and add yourself to the authors list
  • Make sure you are making a pull request against the develop branch (not main). Also you should start your branch off develop
  • Add tests that prove your fix is effective or that your feature works
  • Add necessary documentation (if appropriate)

Thank you for contributing to SLEAP!

❤️

@sheridana sheridana requested a review from talmo July 21, 2022 00:44
@codecov
Copy link

codecov bot commented Jul 21, 2022

Codecov Report

Merging #850 (a7a03ca) into develop (c4409dd) will increase coverage by 0.18%.
The diff coverage is 90.58%.

@@             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     
Impacted Files Coverage Δ
sleap/nn/inference.py 79.54% <89.87%> (+4.35%) ⬆️
sleap/__init__.py 100.00% <100.00%> (ø)
sleap/nn/data/resizing.py 65.33% <100.00%> (-0.44%) ⬇️
sleap/nn/peak_finding.py 75.51% <100.00%> (-17.50%) ⬇️
sleap/nn/config/training_job.py 93.87% <0.00%> (+10.20%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sheridana sheridana marked this pull request as ready for review July 21, 2022 01:11
@sheridana sheridana requested a review from roomrys July 21, 2022 02:17
@roomrys roomrys changed the title Arlo/bonsai Modify inference and centroid model to allow Bonsai ingestions Jul 21, 2022
@roomrys roomrys changed the title Modify inference and centroid model to allow Bonsai ingestions Modify inference and centroid model to allow Bonsai ingestion Jul 21, 2022
Comment on lines 84 to 85
@pytest.mark.skip
def test_save(model, preds, output_path):
Copy link
Contributor

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)
Copy link
Collaborator

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.

@sheridana sheridana requested a review from talmo August 26, 2022 23:02
Copy link
Collaborator

@talmo talmo left a 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

@talmo talmo merged commit eec8a00 into develop Aug 29, 2022
@talmo talmo deleted the arlo/bonsai branch August 29, 2022 17:20
@roomrys roomrys mentioned this pull request Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants