Skip to content
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

⚡ Improve Engine Performance and Implementation #578

Draft
wants to merge 111 commits into
base: develop
Choose a base branch
from

Conversation

shaneahmed
Copy link
Member

@shaneahmed shaneahmed commented Mar 31, 2023

  • Improve Engines performance and implementation
  • Redesigns PatchPredictor engine using the new EngineABC base class.
  • The WSIs are now processed using the same code as for the processing the patches using WSI based dataloader.
  • The intermediate output is saved as zarr for the WSIs to resolve memory issues.
  • The output of model architectures should now be a dictionary.
  • The output can be specified as AnnotationStore for visualisation using TIAViz.

@shaneahmed shaneahmed self-assigned this Mar 31, 2023
@shaneahmed shaneahmed added the enhancement New feature or request label Mar 31, 2023
@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Attention: Patch coverage is 81.67939% with 120 lines in your changes missing coverage. Please review.

Project coverage is 91.30%. Comparing base (12d435e) to head (02aa0e5).

Files with missing lines Patch % Lines
tiatoolbox/models/dataset/dataset_abc.py 70.99% 38 Missing ⚠️
tiatoolbox/models/engine/io_config.py 56.16% 32 Missing ⚠️
tiatoolbox/utils/misc.py 52.38% 28 Missing and 2 partials ⚠️
tiatoolbox/models/engine/semantic_segmentor.py 30.00% 14 Missing ⚠️
tiatoolbox/models/architecture/vanilla.py 50.00% 2 Missing ⚠️
tiatoolbox/cli/common.py 91.66% 0 Missing and 1 partial ⚠️
tiatoolbox/cli/nucleus_instance_segment.py 0.00% 1 Missing ⚠️
tiatoolbox/models/engine/engine_abc.py 99.65% 0 Missing and 1 partial ⚠️
tiatoolbox/models/engine/patch_predictor.py 93.75% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #578      +/-   ##
===========================================
- Coverage    99.88%   91.30%   -8.59%     
===========================================
  Files           69       71       +2     
  Lines         8664     8840     +176     
  Branches      1148     1179      +31     
===========================================
- Hits          8654     8071     -583     
- Misses           4      750     +746     
- Partials         6       19      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Refactor engines_abc.py
@shaneahmed shaneahmed changed the title ⚡ Improve Engines Performance and Implementation ⚡ Improve Engine Performance and Implementation Apr 28, 2023
shaneahmed and others added 9 commits September 18, 2024 12:43
- Redesigns PatchPredictor engine using the new EngineABC base class.
- The WSIs are now processed using the same code as for the processing the patches using WSI based dataloader.
- The intermediate output is saved as zarr for the WSIs to resolve memory issues.
- The output of model architectures should now be a dictionary.
- The output can be specified as AnnotationStore for visualisation using TIAViz.

---------

Co-authored-by: abishekrajvg <abishekraj6797@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Fix `mypy` Type Checks for `cli/common.py`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants