🆕 Define MultiTaskSegmentor and NucleusInstanceSegmentor #981
Open
shaneahmed wants to merge 148 commits intodev-define-engines-abcfrom
Open
🆕 Define MultiTaskSegmentor and NucleusInstanceSegmentor #981shaneahmed wants to merge 148 commits intodev-define-engines-abcfrom
MultiTaskSegmentor and NucleusInstanceSegmentor #981shaneahmed wants to merge 148 commits intodev-define-engines-abcfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev-define-engines-abc #981 +/- ##
==========================================================
+ Coverage 95.50% 99.11% +3.60%
==========================================================
Files 80 81 +1
Lines 10361 10701 +340
Branches 1360 1424 +64
==========================================================
+ Hits 9895 10606 +711
+ Misses 429 62 -367
+ Partials 37 33 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ntor # Conflicts: # requirements/requirements.txt
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 32 out of 33 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
adamshephard
approved these changes
Feb 13, 2026
Jiaqi-Lv
reviewed
Feb 13, 2026
Jiaqi-Lv
reviewed
Feb 13, 2026
Jiaqi-Lv
reviewed
Feb 13, 2026
Jiaqi-Lv
reviewed
Feb 13, 2026
Jiaqi-Lv
reviewed
Feb 13, 2026
Jiaqi-Lv
reviewed
Feb 13, 2026
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.
Summary
MultiTaskSegmentor, providing a simplified API for nucleus instance segmentation.multitask-segmentornucleus-instance-segment(now powered by the MultiTask engine)These updates significantly modernize the inference engine, unify multi‑task workflows, and prepare TIAToolbox for future segmentation models.
Key Changes
1) MultiTaskSegmentor
dict,.zarr, or AnnotationStore"task_type","predictions","info_dict").return_predictions.2) NucleusInstanceSegmentor (inherits MultiTaskSegmentor)
3) CLI Updates
multitask-segmentorcommand.nucleus-instance-segment:parse_bool_list) for--return-predictions.4) Model Architecture: HoVerNet & HoVerNetPlus
postprocnow returns task dictionaries, not positional arrays..tasksand.class_dict.contour→contours"box".5) EngineABC Improvements
run()now requiressave_dirwhenoutput_type = zarr|annotationstore._get_tasks_for_saving_zarrfor:6) Dependency Updates
>=2026.1.2.Breaking / Behavioral Changes
postprocoutput changed to structured task dictionaries.contourconsistently renamed tocontours.EngineABC.run()raises on missingsave_dirwhen using Zarr or AnnotationStore.NucleusInstanceSegmentoris now deprecated (internally uses MultiTaskSegmentor).Usage Examples
Patch Mode
WSI Mode (Zarr Output)
WSI + AnnotationStore
CLI