Skip to content

[integration/peerlab] Optimisation/tiling#50

Merged
Tobiaspk merged 4 commits into
integration/peerlabfrom
optimisation/tiling
May 27, 2026
Merged

[integration/peerlab] Optimisation/tiling#50
Tobiaspk merged 4 commits into
integration/peerlabfrom
optimisation/tiling

Conversation

@Tobiaspk
Copy link
Copy Markdown
Collaborator

Closes #49

This implements a CSR-like subsetting approach as highlighted in #49. It consists of 2 majors updates:

  1. Sort all edges during graph construction by src.
  2. Replace data.subgraph with a custom subgraphing implementation that is very similar to the torch_geometric source code, but uses the proposed subsetting logic.

Tested this by comparing the subsets of the old and new version on 100 randomly selected prediction tiles of the public Atera Breast Cancer dataset. Results

  • Number of nodes and edges are always identical
  • The prediction mask sometimes changes in up to 0.3%. This could be caused by replacing the buffer operation with a simple margin expansion of the tile.

Performance improvement in this dataset is 8.5x.

@Tobiaspk Tobiaspk changed the base branch from main to integration/peerlab May 27, 2026 14:44
@Tobiaspk Tobiaspk changed the title Optimisation/tiling [integration/peerlab] Optimisation/tiling May 27, 2026
@Tobiaspk Tobiaspk merged commit 2969f95 into integration/peerlab May 27, 2026
@Tobiaspk Tobiaspk deleted the optimisation/tiling branch May 27, 2026 21:06
EliHei2 pushed a commit that referenced this pull request Jun 1, 2026
[integration/peerlab] Optimisation/tiling
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.

Prediction tile subsetting slow

1 participant