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 90 commits into
base: develop
Choose a base branch
from

Conversation

shaneahmed
Copy link
Member

  • Improve Engines performance and implementation

@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 78.90071% with 119 lines in your changes missing coverage. Please review.

Project coverage is 89.51%. Comparing base (73aa802) to head (06af594).
Report is 1 commits behind head on develop.

Current head 06af594 differs from pull request most recent head 557bda5

Please upload reports for the commit 557bda5 to get more accurate results.

Files Patch % Lines
tiatoolbox/models/dataset/dataset_abc.py 70.76% 38 Missing ⚠️
tiatoolbox/models/engine/io_config.py 56.16% 32 Missing ⚠️
tiatoolbox/utils/misc.py 50.94% 26 Missing ⚠️
tiatoolbox/models/engine/semantic_segmentor.py 30.00% 14 Missing ⚠️
tiatoolbox/models/engine/patch_predictor.py 66.66% 6 Missing ⚠️
tiatoolbox/models/architecture/vanilla.py 50.00% 2 Missing ⚠️
tiatoolbox/cli/nucleus_instance_segment.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #578       +/-   ##
============================================
- Coverage    99.89%   89.51%   -10.39%     
============================================
  Files           69       71        +2     
  Lines         8650     8848      +198     
  Branches      1653     1701       +48     
============================================
- Hits          8641     7920      -721     
- Misses           1      913      +912     
- Partials         8       15        +7     

☔ 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 shaneahmed linked an issue Jan 12, 2024 that may be closed by this pull request
8 tasks
shaneahmed and others added 24 commits February 2, 2024 12:00
Implements cache mode for processing using EngineABC. Cache_mode saves intermediate results to zarr file which can be converted to AnnotationStore. Full WSI pipeline needs to be implemented for Engines inheriting the base class.

The output of models should be a dictionary according to the new Engine design.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shan E Ahmed Raza <[email protected]>
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