Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,4 @@ lightning_logs/
# Project
/data
playground.ipynb
/outputs
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ dependencies = [
[dependency-groups]
dev = ["mypy", "ruff", "ipykernel"]
job = ["rationai-kube-jobs"]
report = ["report"]

[tool.uv.sources]
rationai-mlkit = { git = "https://gitlab.ics.muni.cz/rationai/digital-pathology/libraries/mlkit.git" }
rationai-masks = { git = "https://gitlab.ics.muni.cz/rationai/digital-pathology/libraries/masks.git" }
rationai-tiling = { git = "https://gitlab.ics.muni.cz/rationai/digital-pathology/libraries/tiling.git" }
rationai-kube-jobs = { git = "ssh://git@gitlab.ics.muni.cz/rationai/infrastructure/kube-jobs" }
rationai-sdk = { git = "https://gitlab.ics.muni.cz/rationai/infrastructure/rationai-sdk-python.git" }
report = { git = "https://gitlab.ics.muni.cz/rationai/digital-pathology/tools/report.git" }
20 changes: 20 additions & 0 deletions reporting/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
defaults:
- _self_
- hydra: default
- mlflow: kubas_cluster

user: ???

reporter:
save: ???
background: ???
title: ???
mask_retrievers: []
metrics_run_ids: []
template_asset_path: report_template.html

metadata:
user: ${user}
experiment_name: ???
run_name: ???
description: ???
6 changes: 6 additions & 0 deletions reporting/hydra/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
job:
name: report
chdir: true

help:
app_name: Experiment Report
1 change: 1 addition & 0 deletions reporting/mlflow/base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tracking_uri: ???
1 change: 1 addition & 0 deletions reporting/mlflow/kubas_cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tracking_uri: http://mlflow.rationai-mlflow:5000/
1 change: 1 addition & 0 deletions reporting/mlflow/kubas_external.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tracking_uri: https://mlflow.rationai.cloud.trusted.e-infra.cz/
1 change: 1 addition & 0 deletions reporting/mlflow/local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tracking_uri: file:./mlflow_store
3 changes: 3 additions & 0 deletions reporting/reporter/background/drive.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_target_: report.masks.DriveMasksRetriever
dir_name: ???
layer_name: ???
3 changes: 3 additions & 0 deletions reporting/reporter/background/mlflow_artifact.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_target_: report.masks.ArtifactURIMasksRetriever
artifact_uri: ???
layer_name: ???
4 changes: 4 additions & 0 deletions reporting/reporter/background/mlflow_run_id.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_target_: report.masks.RunIDMlflowMaskRetriever
dir_name: ???
run_id: ???
layer_name: ???
6 changes: 6 additions & 0 deletions reporting/reporter/background/mlflow_tyler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
_target_: report.masks.TylerMLFlowMaskRetriever
artifact_uris: ???
item_name_col: ???
background_masks_directory: ???
ground_truth_col: ???
layer_name: ???
76 changes: 76 additions & 0 deletions reporting/reporter/preprocessing/ftn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
defaults:
- background: drive
- save: mlflow_standalone_run

title: Ulcerative Colitis Preprocessing - ftn
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent capitalization in title. "ftn" should be capitalized (e.g., "FTN") to match the pattern used in other configuration files where dataset sources are uppercase (e.g., "IKEM", "KNL Patos").

Copilot uses AI. Check for mistakes.

background:
dir_name: /mnt/data/FTN/colon/IBD_AI
layer_name: Ulcerative Colitis

mask_retrievers:
- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: tissue_masks
layer_name: Tissue mask
shader_conf:
type: heatmap
opacity: 0.5
color: "#ffff00"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
dir_name: blur_per_pixel
layer_name: Blur
shader_conf:
type: heatmap
opacity: 0.5
color: "#00ffff"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
dir_name: artifacts_per_pixel
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Trailing whitespace detected at the end of the line. This should be removed for code cleanliness.

Suggested change
dir_name: artifacts_per_pixel
dir_name: artifacts_per_pixel

Copilot uses AI. Check for mistakes.
layer_name: Residual artifacts
shader_conf:
type: heatmap
opacity: 0.5
color: "#00ffff"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: clean_tiles
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent directory path compared to knl_patos.yaml which uses "tile_masks/clean_tiles" for the same layer. This inconsistency may cause the report to fail if the actual artifact structure matches knl_patos.yaml.

Suggested change
dir_name: clean_tiles
dir_name: tile_masks/clean_tiles

Copilot uses AI. Check for mistakes.
layer_name: Used Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#00ff00"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: blur_tiles
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent directory path compared to knl_patos.yaml which uses "tile_masks/blur_tiles" for the same layer. This inconsistency may cause the report to fail if the actual artifact structure matches knl_patos.yaml.

Suggested change
dir_name: blur_tiles
dir_name: tile_masks/blur_tiles

Copilot uses AI. Check for mistakes.
layer_name: Blur Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#ff0000"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
dir_name: artifacts_tiles
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent directory path compared to knl_patos.yaml which uses "tile_masks/artifacts_tiles" for the same layer. This inconsistency may cause the report to fail if the actual artifact structure matches knl_patos.yaml.

Suggested change
dir_name: artifacts_tiles
dir_name: tile_masks/artifacts_tiles

Copilot uses AI. Check for mistakes.
layer_name: Artifacts Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#ff0000"
visible: False

save:
metadata:
experiment_name : 'Ulcerative Colitis'
run_name : '📊 Report: Preprocessing - ftn'
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent capitalization in run_name. "ftn" should be capitalized (e.g., "FTN") to match the pattern used in other configuration files where dataset sources are uppercase (e.g., "ikem", "knl patos").

Copilot uses AI. Check for mistakes.
description: Report
76 changes: 76 additions & 0 deletions reporting/reporter/preprocessing/ikem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
defaults:
- background: drive
- save: mlflow_standalone_run

title: Ulcerative Colitis Preprocessing - IKEM

background:
dir_name: /mnt/data/IKEM/colon/IBD_AI/20x
layer_name: Ulcerative Colitis

mask_retrievers:
- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: tissue_masks
layer_name: Tissue mask
shader_conf:
type: heatmap
opacity: 0.5
color: "#ffff00"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: blur_per_pixel
layer_name: Blur
shader_conf:
type: heatmap
opacity: 0.5
color: "#00ffff"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: artifacts_per_pixel
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Trailing whitespace detected at the end of the line. This should be removed for code cleanliness.

Suggested change
dir_name: artifacts_per_pixel
dir_name: artifacts_per_pixel

Copilot uses AI. Check for mistakes.
layer_name: Residual artifacts
shader_conf:
type: heatmap
opacity: 0.5
color: "#00ffff"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: clean_tiles
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent directory path compared to knl_patos.yaml which uses "tile_masks/clean_tiles" for the same layer. This inconsistency may cause the report to fail if the actual artifact structure matches knl_patos.yaml.

Suggested change
dir_name: clean_tiles
dir_name: tile_masks/clean_tiles

Copilot uses AI. Check for mistakes.
layer_name: Used Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#00ff00"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: blur_tiles
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent directory path compared to knl_patos.yaml which uses "tile_masks/blur_tiles" for the same layer. This inconsistency may cause the report to fail if the actual artifact structure matches knl_patos.yaml.

Suggested change
dir_name: blur_tiles
dir_name: tile_masks/blur_tiles

Copilot uses AI. Check for mistakes.
layer_name: Blur Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#ff0000"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: TODO
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The run_id is set to "TODO" which is a placeholder value. This configuration will fail at runtime if used without a valid MLflow run ID.

Copilot uses AI. Check for mistakes.
dir_name: artifacts_tiles
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Inconsistent directory path compared to knl_patos.yaml which uses "tile_masks/artifacts_tiles" for the same layer. This inconsistency may cause the report to fail if the actual artifact structure matches knl_patos.yaml.

Suggested change
dir_name: artifacts_tiles
dir_name: tile_masks/artifacts_tiles

Copilot uses AI. Check for mistakes.
layer_name: Artifacts Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#ff0000"
visible: False

save:
metadata:
experiment_name : 'Ulcerative Colitis'
run_name : '📊 Report: Preprocessing - ikem'
description: Report
78 changes: 78 additions & 0 deletions reporting/reporter/preprocessing/knl_patos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
defaults:
- save: mlflow_standalone_run

title: Ulcerative Colitis Preprocessing - KNL Patos

background:
_target_: report.masks.BasicImageRetriever
source_dir: /mnt/data/KNL_PATOS/colon/IBD_AI
globs:
- "*.czi"
layer_name: Ulcerative Colitis

mask_retrievers:
- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: 8ef6d6f0c9af4f35a087596960f675aa
dir_name: tissue_masks
layer_name: Tissue mask
shader_conf:
type: heatmap
opacity: 0.5
color: "#ffff00"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: 75fc3e53112f4634ae5238777d87e88c
dir_name: blur_per_pixel
layer_name: Blur
shader_conf:
type: heatmap
opacity: 0.5
color: "#00ffff"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: 75fc3e53112f4634ae5238777d87e88c
dir_name: artifacts_per_pixel
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

Trailing whitespace detected at the end of the line. This should be removed for code cleanliness.

Suggested change
dir_name: artifacts_per_pixel
dir_name: artifacts_per_pixel

Copilot uses AI. Check for mistakes.
layer_name: Residual artifacts
shader_conf:
type: heatmap
opacity: 0.5
color: "#00ffff"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: 4775c5688189427e803a154a213acb0e
dir_name: tile_masks/clean_tiles
layer_name: Used Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#00ff00"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: 4775c5688189427e803a154a213acb0e
dir_name: tile_masks/blur_tiles
layer_name: Blur Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#ff0000"
visible: False

- _target_: report.masks.RunIDMlflowMaskRetriever
run_id: 4775c5688189427e803a154a213acb0e
dir_name: tile_masks/artifacts_tiles
layer_name: Artifacts Tiles
shader_conf:
type: heatmap
opacity: 1.0
color: "#ff0000"
visible: False

save:
metadata:
experiment_name : 'Ulcerative Colitis'
run_name : '📊 Report: Preprocessing - knl patos'
description: Report
2 changes: 2 additions & 0 deletions reporting/reporter/save/local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_target_: report.save.LocalReportStorer
output_path: report.html
3 changes: 3 additions & 0 deletions reporting/reporter/save/mlflow_attach_to_run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_target_: report.save.RunIDMLFlowReportAttacher
artifact_path: report.html
run_id: ???
3 changes: 3 additions & 0 deletions reporting/reporter/save/mlflow_standalone_run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_target_: report.save.MLFlowReportStorer
artifact_path: report.html
metadata: ${metadata}
Loading