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

πŸ§‘β€πŸ’» Define PatchPredictor #783

Merged
merged 140 commits into from
Sep 20, 2024

Conversation

shaneahmed
Copy link
Member

@shaneahmed shaneahmed commented Feb 9, 2024

  • 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.

AbishekRajVG and others added 30 commits November 10, 2023 13:44
Signed-off-by: Shan E Ahmed Raza <13048456+shaneahmed@users.noreply.github.com>
Signed-off-by: Shan E Ahmed Raza <13048456+shaneahmed@users.noreply.github.com>
Signed-off-by: Shan E Ahmed Raza <13048456+shaneahmed@users.noreply.github.com>
@shaneahmed shaneahmed requested a review from Abdol August 16, 2024 11:35
Signed-off-by: Shan E Ahmed Raza <13048456+shaneahmed@users.noreply.github.com>
@shaneahmed
Copy link
Member Author

@mostafajahanifar and @adamshephard I have pushed the updates as discussed during the meeting.

Signed-off-by: Shan E Ahmed Raza <13048456+shaneahmed@users.noreply.github.com>
Signed-off-by: Shan E Ahmed Raza <13048456+shaneahmed@users.noreply.github.com>
Copy link
Collaborator

@mostafajahanifar mostafajahanifar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your excellent work on this PR, Shan. The extent of your contributions is truly impressive.

While the current design appears functional, I believe we can enhance the flexibility of the toolbox by addressing the use of ModelABC for models. To achieve this, I suggest relocating methods that specifically pertain to ModelABC to the engines. This will allow for greater customization and the ability to seamlessly swap engines and models based on user preferences. Predefined (default) functions for common model types can also be implemented to streamline the process.

Anyway, I understand that you may decide to include these changes in a separate PR.

tiatoolbox/models/engine/patch_predictor.py Outdated Show resolved Hide resolved
tiatoolbox/models/engine/engine_abc.py Show resolved Hide resolved
@shaneahmed shaneahmed merged commit 81e575d into dev-define-engines-abc Sep 20, 2024
3 checks passed
@shaneahmed shaneahmed deleted the dev-define-patchpredictor branch September 20, 2024 12:15
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
Development

Successfully merging this pull request may close these issues.

5 participants