Running inference with a trained (single) detector#125
Draft
sfmig wants to merge 61 commits into
Draft
Conversation
for more information, see https://pre-commit.ci
a171b67 to
edbc369
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #125 +/- ##
==========================================
+ Coverage 99.45% 99.58% +0.12%
==========================================
Files 8 11 +3
Lines 555 721 +166
==========================================
+ Hits 552 718 +166
Misses 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ngs and error handling; add corresponding unit tests.
…figure_model. In pretrained case, only replace head if required. Add _get_n_classes_in_detector as static method
…sses, loading from ckpt
…. When padding allow casting np.nan (float64) to float32 (same kind). Adapt tests.
…nores misspellings). Edits to docstring
Signed-off-by: sfmig <33267254+sfmig@users.noreply.github.com>
sfmig
commented
Feb 4, 2026
| # Create dataset | ||
|
|
||
| images_dir = data_dir / "experts" / "images" | ||
| dataset = InferenceImageDataset( |
Member
Author
There was a problem hiding this comment.
Note to self: can I read the annotations as an ethology dataset, and convert that xarray to a Pytorch-compatible dataset (with xbatcher.loaders.torch.MapDataset, see this example)?
Is it a good idea to add the images to the annotations dataset? (do I need to?)
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
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.
TODO:
get_detector_collate_fnget_detector_collate_fnDescription
What is this PR
Why is this PR needed?
What does this PR do?
References
Please reference any existing issues/PRs that relate to this PR.
How has this PR been tested?
Please explain how any new code has been tested, and how you have ensured that no existing functionality has changed.
Is this a breaking change?
If this PR breaks any existing functionality, please explain how and why.
Does this PR require an update to the documentation?
If any features have changed, or have been added. Please explain how the
documentation has been updated.
Checklist: