Skip to content

Feature/retrain cnns - #30

Merged
ejdam87 merged 230 commits into
masterfrom
feature/retrain-cnns
Jul 24, 2026
Merged

Feature/retrain cnns#30
ejdam87 merged 230 commits into
masterfrom
feature/retrain-cnns

Conversation

@ejdam87

@ejdam87 ejdam87 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

This PR adds TL trained CNNs operating on 224x224 patches.

@ejdam87
ejdam87 requested review from a team, Adames4 and vejtek July 20, 2026 16:59
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 151 files, which is 51 over the limit of 100.

To get a review, narrow the scope:
• coderabbit review --committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e4261276-b763-4bf1-96c3-8c9b4c9f4e0a

📥 Commits

Reviewing files that changed from the base of the PR and between fa06790 and ec36a86.

📒 Files selected for processing (151)
  • configs/experiment/postprocessing/eval_estimation/mpm/resnet50_224.yaml
  • configs/experiment/postprocessing/eval_estimation/mpm/resnet50_stain_224.yaml
  • configs/experiment/postprocessing/eval_estimation/mpm/vgg16_224.yaml
  • configs/experiment/postprocessing/eval_estimation/mpm/vgg16_stain_224.yaml
  • configs/experiment/postprocessing/eval_estimation/span/resnet50_224.yaml
  • configs/experiment/postprocessing/eval_estimation/span/resnet50_stain_224.yaml
  • configs/experiment/postprocessing/eval_estimation/span/vgg16_224.yaml
  • configs/experiment/postprocessing/eval_estimation/span/vgg16_stain_224.yaml
  • configs/experiment/postprocessing/eval_estimation/top_k/resnet50_224.yaml
  • configs/experiment/postprocessing/eval_estimation/top_k/resnet50_stain_224.yaml
  • configs/experiment/postprocessing/eval_estimation/top_k/vgg16_224.yaml
  • configs/experiment/postprocessing/eval_estimation/top_k/vgg16_stain_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/resnet50/base_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/resnet50/base_stain_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/resnet50/mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/resnet50/stain_mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/vgg16/base_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/vgg16/base_stain_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/vgg16/mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/max_aggregations/vgg16/stain_mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/resnet50/base_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/resnet50/base_stain_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/resnet50/mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/resnet50/stain_mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/vgg16/base_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/vgg16/base_stain_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/vgg16/mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/mean_pool_max_aggregations/vgg16/stain_mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/resnet50/base_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/resnet50/base_stain_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/resnet50/mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/resnet50/stain_mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/vgg16/base_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/vgg16/base_stain_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/vgg16/mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_curves/top_k_aggregations/vgg16/stain_mmci_sl_group_1_224.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/max_aggregations/mmci_tl_test.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/mean_pool_max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/mean_pool_max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/span_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/span_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/top_k_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_224/top_k_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/max_aggregations/mmci_tl_test.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/mean_pool_max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/mean_pool_max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/span_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/span_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/top_k_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/resnet50_stain_224/top_k_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/max_aggregations/mmci_tl_test.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/mean_pool_max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/mean_pool_max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/span_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/span_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/top_k_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_224/top_k_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/max_aggregations/mmci_tl_test.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/mean_pool_max_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/mean_pool_max_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/span_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/span_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/top_k_aggregations/base.yaml
  • configs/experiment/postprocessing/slide_level_eval/vgg16_stain_224/top_k_aggregations/mmci_sl_group_1.yaml
  • configs/experiment/predict/images/base.yaml
  • configs/experiment/predict/images/resnet50/base.yaml
  • configs/experiment/predict/images/resnet50/base_224.yaml
  • configs/experiment/predict/images/resnet50/estimations/mpm_estimation.yaml
  • configs/experiment/predict/images/resnet50/estimations/mpm_estimation_224.yaml
  • configs/experiment/predict/images/resnet50/estimations/span_estimation.yaml
  • configs/experiment/predict/images/resnet50/estimations/span_estimation_224.yaml
  • configs/experiment/predict/images/resnet50/estimations/stain_mpm_estimation.yaml
  • configs/experiment/predict/images/resnet50/estimations/stain_mpm_estimation_224.yaml
  • configs/experiment/predict/images/resnet50/estimations/stain_span_estimation.yaml
  • configs/experiment/predict/images/resnet50/estimations/stain_span_estimation_224.yaml
  • configs/experiment/predict/images/resnet50/estimations/stain_top_k_estimation.yaml
  • configs/experiment/predict/images/resnet50/estimations/stain_top_k_estimation_224.yaml
  • configs/experiment/predict/images/resnet50/estimations/top_k_estimation.yaml
  • configs/experiment/predict/images/resnet50/estimations/top_k_estimation_224.yaml
  • configs/experiment/predict/images/resnet50/heatmaps/base_224.yaml
  • configs/experiment/predict/images/resnet50/heatmaps/mmci_tl_val_224.yaml
  • configs/experiment/predict/images/resnet50/heatmaps/stain_base_224.yaml
  • configs/experiment/predict/images/resnet50/heatmaps/stain_mmci_tl_val_224.yaml
  • configs/experiment/predict/images/resnet50/stain_base.yaml
  • configs/experiment/predict/images/resnet50/stain_base_224.yaml
  • configs/experiment/predict/images/vgg16/base.yaml
  • configs/experiment/predict/images/vgg16/base_224.yaml
  • configs/experiment/predict/images/vgg16/estimations/mpm_estimation.yaml
  • configs/experiment/predict/images/vgg16/estimations/mpm_estimation_224.yaml
  • configs/experiment/predict/images/vgg16/estimations/span_estimation.yaml
  • configs/experiment/predict/images/vgg16/estimations/span_estimation_224.yaml
  • configs/experiment/predict/images/vgg16/estimations/stain_mpm_estimation.yaml
  • configs/experiment/predict/images/vgg16/estimations/stain_mpm_estimation_224.yaml
  • configs/experiment/predict/images/vgg16/estimations/stain_span_estimation.yaml
  • configs/experiment/predict/images/vgg16/estimations/stain_span_estimation_224.yaml
  • configs/experiment/predict/images/vgg16/estimations/stain_top_k_estimation.yaml
  • configs/experiment/predict/images/vgg16/estimations/stain_top_k_estimation_224.yaml
  • configs/experiment/predict/images/vgg16/estimations/top_k_estimation.yaml
  • configs/experiment/predict/images/vgg16/estimations/top_k_estimation_224.yaml
  • configs/experiment/predict/images/vgg16/heatmaps/base_224.yaml
  • configs/experiment/predict/images/vgg16/heatmaps/mmci_tl_val_224.yaml
  • configs/experiment/predict/images/vgg16/heatmaps/stain_base_224.yaml
  • configs/experiment/predict/images/vgg16/heatmaps/stain_mmci_tl_val_224.yaml
  • configs/experiment/predict/images/vgg16/stain_base.yaml
  • configs/experiment/predict/images/vgg16/stain_base_224.yaml
  • configs/experiment/test/images/base.yaml
  • configs/experiment/test/images/resnet50/base.yaml
  • configs/experiment/test/images/resnet50/base_224.yaml
  • configs/experiment/test/images/resnet50/stain_base.yaml
  • configs/experiment/test/images/resnet50/stain_base_224.yaml
  • configs/experiment/test/images/resnet50/stain_tile_threshold_224.yaml
  • configs/experiment/test/images/resnet50/test_suite/base_224.yaml
  • configs/experiment/test/images/resnet50/test_suite/mmci_tl_224.yaml
  • configs/experiment/test/images/resnet50/test_suite/stain_base_224.yaml
  • configs/experiment/test/images/resnet50/test_suite/stain_mmci_tl_224.yaml
  • configs/experiment/test/images/resnet50/tile_threshold_224.yaml
  • configs/experiment/test/images/vgg16/base.yaml
  • configs/experiment/test/images/vgg16/base_224.yaml
  • configs/experiment/test/images/vgg16/stain_base.yaml
  • configs/experiment/test/images/vgg16/stain_base_224.yaml
  • configs/experiment/test/images/vgg16/stain_tile_threshold_224.yaml
  • configs/experiment/test/images/vgg16/test_suite/base_224.yaml
  • configs/experiment/test/images/vgg16/test_suite/mmci_tl_224.yaml
  • configs/experiment/test/images/vgg16/test_suite/stain_base_224.yaml
  • configs/experiment/test/images/vgg16/test_suite/stain_mmci_tl_224.yaml
  • configs/experiment/test/images/vgg16/tile_threshold_224.yaml
  • configs/experiment/train/images/resnet50/base_224.yaml
  • configs/experiment/train/images/resnet50/base_stain_224.yaml
  • configs/experiment/train/images/resnet50/mmci_224.yaml
  • configs/experiment/train/images/resnet50/mmci_stain_224.yaml
  • configs/experiment/train/images/vgg16/base_224.yaml
  • configs/experiment/train/images/vgg16/base_stain_224.yaml
  • configs/experiment/train/images/vgg16/mmci_224.yaml
  • configs/experiment/train/images/vgg16/mmci_stain_224.yaml
  • configs/model/checkpoints/mmci_tl/resnet50_224.yaml
  • configs/model/checkpoints/mmci_tl/resnet50_stain_224.yaml
  • configs/model/checkpoints/mmci_tl/vgg16_224.yaml
  • configs/model/checkpoints/mmci_tl/vgg16_stain_224.yaml
  • notebooks/eval/non_inferiority.ipynb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Review on demand using usage pricing
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/retrain-cnns

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces support for ResNet50 and VGG16 models trained on 224x224 image patches. It includes the necessary configuration files for training, testing, and inference, as well as updated evaluation logic to accommodate these new models. The changes ensure that the pipeline can effectively handle and evaluate the performance of these models across various aggregation methods.

Highlights

  • New Model Configurations: Added multiple new configuration files for ResNet50 and VGG16 models trained on 224x224 patches, including stain-normalized variants.
  • Experiment Setup: Introduced new experiment configurations for post-processing, slide-level evaluation, and inference, specifically tailored for the 224x224 patch size.
  • Notebook Updates: Updated the non-inferiority evaluation notebook to include the new 224x224 models and their corresponding evaluation metrics.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a comprehensive set of Hydra configuration files for training, testing, predicting, and evaluating 224x224 resolution ResNet50 and VGG16 models (both standard and stain-normalized variants). It also updates the non-inferiority evaluation notebook to incorporate these new models. The review feedback highlights configuration mismatches in the pred_column parameter for top-k aggregations in both the standard and stain-normalized ResNet50 224x224 configurations, which conflict with the evaluation configurations and the notebook.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@ejdam87
ejdam87 merged commit 4e5ca5d into master Jul 24, 2026
3 checks passed
@ejdam87
ejdam87 deleted the feature/retrain-cnns branch July 24, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants