-
Notifications
You must be signed in to change notification settings - Fork 109
📝 Update Example Notebook 08-nucleus-instance-segmentation.ipynb
#993
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
Merged
Merged
Changes from all commits
Commits
Show all changes
178 commits
Select commit
Hold shift + click to select a range
4d21d22
:new: Define New MultiTaskSegmentor
shaneahmed fef42ea
:construction: Add functionalities
shaneahmed ab5cf7c
:fire: Remove previous codes
shaneahmed eab6db0
:fire: Remove previous codes
shaneahmed f8ff99c
:white_check_mark: Add initialization test
shaneahmed 17c7a8a
:boom: Add patch segmentation test
shaneahmed ced4924
:boom: Update loop for postprocessing
shaneahmed 8ea1056
:boom: Work in progress
shaneahmed 1b9d254
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 335aa07
:construction: Update multitask post processing outputs.
shaneahmed 3447495
:construction: Update postprocessing to incorporate dictionary outputs
shaneahmed 84a717d
:white_check_mark: Add test for dictionary output
shaneahmed 6065409
:bug: Fix hovernet and hovernetplus tests
shaneahmed 1c6619b
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed bd6d4b7
:white_check_mark: Add tests for zarr output
shaneahmed c7238b2
:bug: Fix deepsource errors
shaneahmed fa3dcc1
:white_check_mark: Add test for single output.
shaneahmed b042e86
:white_check_mark: Add test for save_dir and None output_type
shaneahmed 47efdd1
:white_check_mark: Improve test coverage.
shaneahmed 618f123
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 645986d
:white_check_mark: Add test for annotationstore single output.
shaneahmed d9953cc
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed e86e176
:white_check_mark: Add tests for multitask annotation store
shaneahmed 4247afa
:white_check_mark: Test output of layer and nuclei segmentation for a…
shaneahmed 94f427e
:white_check_mark: Test output of layer and nuclei segmentation for a…
shaneahmed b16b57b
:bug: Read image at correct resolution
shaneahmed 8aebbaf
:bug: Fix saving annotationstore using zarr
shaneahmed e4392c9
:white_check_mark: Add test for logger.
shaneahmed f9f5f69
:bug: Fix deepsource error `PTC-W0060`
shaneahmed 84a4611
:white_check_mark: Use file paths for a test
shaneahmed 6e1b55f
:bug: Fix paths to input files in test
shaneahmed 99e2352
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed ff804db
:construction: Add zarr output for WSIs
shaneahmed 04dada4
:bug: Fix deepsource error
shaneahmed a8ca393
:bug: Fix deepsource error
shaneahmed a336569
add type annotation utils.transforms.py
Jiaqi-Lv 5717512
:sparkles: Add WSI AnnotationStore support
shaneahmed 568964d
:white_check_mark: Add check for single task and class_dict
shaneahmed 943aebf
:white_check_mark: Add check for single task and class_dict support
shaneahmed e3830b1
:bug: Fix PY-W0070 deep source error
shaneahmed 528b72e
:zap: Use smaller images for faster test runs.
shaneahmed 8e5578a
:bug: Fix memory check for saving arrays
shaneahmed 60faab5
:lipstick: Update logic for better readability
shaneahmed ddc2a54
:bug: Remove residual canvas and count keys
shaneahmed 8cd457c
:bug: Fix deepsource errors
shaneahmed e715f1b
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 4bb4900
:bug: Fix count in merge_predictions
shaneahmed 5e659c0
:bug: Fix count in merge_predictions
shaneahmed c0decb6
:bug: Fix HoVerNetPlus postprocessing.
shaneahmed d934167
:construction: Merge using tile outputs.
shaneahmed e660bb3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] be79c7f
[skip ci] :construction: Restructure dictionary output
shaneahmed 55f7d7f
[skip ci] :construction: Fix structure of the output
shaneahmed 7a2fb6c
[skip ci] :construction: Fix structure of the output
shaneahmed e63385d
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 189d5b3
:memo: Add docstring for `_get_inst_info_dicts`
shaneahmed 13aa48c
:construction: Working on testing tile based output
shaneahmed 44456a7
:construction: Finalise wsi_info_dict structure to work with save_pre…
shaneahmed 4dbf9c4
:white_check_mark: Update hovernet postprocessing to be compatible wi…
shaneahmed eb60aa1
:construction: Initial implementation of merged predictions
shaneahmed 820bb6e
:construction: Initial implementation of merged predictions
shaneahmed 30c2ae7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2c0dccd
:white_check_mark: Add support for tile based "predictions" output
shaneahmed c963514
:white_check_mark: Add support for tile based "predictions" output
shaneahmed 0aaaf5b
:bug: Fix deepsource error
shaneahmed e3f9458
:bug: Fix deepsource error
shaneahmed f5fe072
:bug: Fix `mypy` error
shaneahmed 4683416
:bug: Fix deepsource errors
shaneahmed af8b67b
:bug: Fix coverage for `misc.py`
shaneahmed 5820182
:bug: Fix coverage for `multi_task_segmentor.py`
shaneahmed ce865bd
:memo: Update docstrings.
shaneahmed 260bbc9
:memo: Update docstrings.
shaneahmed 21b3398
:memo: Update docstrings.
shaneahmed c6b7d72
:memo: Update docstrings.
shaneahmed c2f0ac6
:memo: Update docstrings.
shaneahmed d8ed2f5
:pushpin: Pin `dask>=2026.1.2`
shaneahmed ccc7fd4
:white_check_mark: Add CLI support.
shaneahmed 4ac2ef4
:white_check_mark: Update CLI tests.
shaneahmed 1cbb01b
:bug: Fix ARG001 error
shaneahmed 7801944
:bug: Fix deepsource and `mypy` errors.
shaneahmed 60852ea
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 3cf8504
:green_heart: Address Co-Pilot review comments.
shaneahmed 1e52eca
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 9ecddab
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 46eb4dc
:green_heart: Address Co-Pilot comments
shaneahmed a60b50f
:zap: Use `prepare_full_batch` from `semantic_segmentor`.
shaneahmed 3a68f0a
:zap: Use `save_to_cache` from `semantic_segmentor`.
shaneahmed 1836816
:zap: Use `max(vm.available, 1)` to calculate memory usage.
shaneahmed 9fb9ea6
:zap: Use `merge_horizontal` from `semantic_segmentor`.
shaneahmed f7e35be
:bug: Fix saving and deletion of temp_zarr name.
shaneahmed dd3e5a5
:white_check_mark: Use `hovernet_original-kumar`
shaneahmed 27d6161
:white_check_mark: Update `NucleusInstanceSegmentor`.
shaneahmed 86111a6
:white_check_mark: Add tests for io_config.
shaneahmed de65370
:white_check_mark: Add `cli` for `nucleus_instance_segmentor`.
shaneahmed 52e21e6
:white_check_mark: Add tests for cli
shaneahmed 151b61e
:white_check_mark: Add tests for cli coverage.
shaneahmed 6015d5f
:white_check_mark: Add progress bar for saving annotationstore.
shaneahmed a0ae9d1
:white_check_mark: Update ioconfig
shaneahmed f48c4e0
:white_check_mark: Update batchsize for cli and tests
shaneahmed e962fe5
:bug: Fix deepsource bug
shaneahmed 73f7d61
:bug: Fix tests
shaneahmed aae3529
:lipstick: Update description for tqdm
shaneahmed 322f4f6
:lipstick: Update description for tqdm
shaneahmed 7c62b3d
:white_check_mark: Add tests for improved coverage
shaneahmed 199aeb9
:zap: Use dask delayed for parallel post-processing.
shaneahmed f2df80d
📝 Update example nucleus-instance-segmentation notebook
gozdeg 2a93636
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 20a2a84
:lipstick: Replace `tqdm.write` with `tqdm.desc`
shaneahmed 63d9157
:bug: Fix failing test for DummyTQDM
shaneahmed 9fda536
:zap: Use dask delayed to save annotations.
shaneahmed bbb1bbf
:lipstick: Add tqdm to creating list of tasks
shaneahmed 2684d92
:lipstick: Update `warnings` and `tqdm`.
shaneahmed a1ee82d
:bug: Fix test with same input and output directory.
shaneahmed 8318a14
:recycle: Restructure calculation of delayed objects
shaneahmed bcbfb1a
:zap: Pass only small arrays to delayed function
shaneahmed cbc27b9
:bug: Fix deep source error.
shaneahmed ae09e90
:lipstick: Update tqdm
shaneahmed 6b320cd
:zap: Test computation of arrays using dask delayed.
shaneahmed eaa13af
:zap: Test computation of arrays using dask delayed.
shaneahmed 199674c
:bug: Fix tqdm_loop
shaneahmed 11513d6
:lipstick: Update tqdm loop engine_abc.py
shaneahmed ca55c74
:lipstick: Update tqdm loop semantic_segmentor.py
shaneahmed 0ba7627
:lipstick: Update tqdm loop semantic_segmentor.py
shaneahmed 9a03550
:lipstick: Use `get_tqdm_full` for nucleus_detector.py
shaneahmed 1480c2c
:lipstick: Use `get_tqdm_full` for nucleus_detector.py
shaneahmed 6fb8293
:bug: Fix `mypy` errors.
shaneahmed 1fc69d7
:zap: Try computing full array
shaneahmed 628cdd0
:lipstick: Use tqdm progress bar for dask
shaneahmed b7df2e0
:lipstick: Use tqdm.dask progress bar for dask
shaneahmed 69fa82d
:bug: Fix delayed_tasks compute
shaneahmed 0b91f28
:recycle: Add `tqdm_dask_progress_bar`
shaneahmed dba148f
:zap: Optimise performance and move tqdm progress bar to misc
shaneahmed af5d598
:zap: Tile based processing is faster
shaneahmed 8741c93
:bug: Fix memory threshold variable.
shaneahmed 3fd396b
:bug: Update appropriate tile_shape
shaneahmed 239b434
:zap: Optimise by removing unnecessary dask compute
shaneahmed dcd7384
:bug: Fix outputs for annotationstore with multiple inputs.
shaneahmed bc86d74
:fire: Remove unnecessary variables
shaneahmed 7dd658e
Merge branch 'dev-define-multitask-segmentor' into dev-update-noteboo…
shaneahmed 5d26867
:bug: Fix writing annotations for large images
shaneahmed 90e3fd5
:zap: Improve annotationstore writing
shaneahmed 787c489
:bug: Fix output annotation type
shaneahmed bd28991
:zap: Use vectorized shapely.box instead of shapely.geometry.box
shaneahmed 10e7ad7
Merge branch 'dev-define-multitask-segmentor' into dev-update-noteboo…
shaneahmed 3a0468c
📝 Example Notebook-08 - Add TIAviz example & some minor edits
gozdeg 09e9d73
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 476a365
:bulb: Address review comments
shaneahmed de2c899
:bug: Fix deepsource error
shaneahmed 5137f6f
:lipstick: Set `leave=False` for tqdm loops
shaneahmed 8a4d065
Merge branch 'dev-define-multitask-segmentor' into dev-update-noteboo…
shaneahmed 1659191
:bug: Fix `pre-commit` errors
shaneahmed d26e1bc
:art: Improve structure of the notebook
shaneahmed 28974cd
:art: Improve structure of the notebook
shaneahmed 6e7597e
:bug: Fix multi-gpu run
shaneahmed f9acb74
Merge branch 'dev-define-multitask-segmentor' into dev-update-noteboo…
shaneahmed 87bd1dc
:zap: Creating annotations from zarr array is slow
shaneahmed 80a3b11
:bug: Fix zero output array
shaneahmed ba7f5d2
:zap: Convert to annotationstore from memory
shaneahmed bbc9a86
Merge branch 'dev-define-multitask-segmentor' into dev-update-noteboo…
shaneahmed 9429067
🐛 Fix runtime IO config usage for tile post-processing
gozdeg 892a08f
:bulb: Address review comments
shaneahmed 1f0d0e0
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed 9ae3d25
🐛Update ioconfig for baseline input_resolutions
gozdeg 383f862
🐛 Fix model.class_dict usage for multi-gpu setting
gozdeg c6eec65
📝 Change download links to huggingface
gozdeg e1862eb
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed fb22efa
Merge branch 'dev-define-engines-abc' into dev-update-notebook-08
shaneahmed fb39268
Merge branch 'dev-define-engines-abc' into dev-define-multitask-segme…
shaneahmed f141549
:twisted_rightwards_arrows: Merge branch 'dev-define-engines-abc' int…
shaneahmed 8d8b213
Merge branch 'dev-define-multitask-segmentor' into dev-update-noteboo…
shaneahmed bda1e4b
Merge branch 'dev-define-engines-abc' into dev-update-notebook-08
shaneahmed b00c846
:twisted_rightwards_arrows: Merge `dev-define-engines-abc` into `dev-…
shaneahmed 2b13e02
🐛 pytest bug fix
gozdeg 97a55d6
🐛 Fix multi-gpu support for all engines
gozdeg 789ffa0
:bulb: Address Co-Pilot comments
shaneahmed 7a0a99e
:bug: Revert typehints for mypy checks and update tests for multigpu …
shaneahmed eda3bac
:memo: Update 08-nucleus-instance-segmentation.ipynb
shaneahmed 2be4e46
:memo: Update notebook `08-nucleus-instance-segmentation.ipynb`
shaneahmed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
30,547 changes: 25,155 additions & 5,392 deletions
30,547
examples/08-nucleus-instance-segmentation.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.