Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jonasteuwen
Copy link
Contributor

@jonasteuwen jonasteuwen commented Jul 20, 2024

This improves the TiledWsiDataset higher performant by replacing the masking with np.ndarray with a cython version.

Extensions can be built in place using python setup.py build_ext --inplace

@codecov
Copy link

codecov bot commented Jul 20, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@jonasteuwen jonasteuwen modified the milestones: v0.5, v0.6 Jul 21, 2024
Copy link
Contributor

@EricMarcus-ai EricMarcus-ai left a comment

Choose a reason for hiding this comment

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

Nice additions. Did a test run in ahcore inference, ran ~10x faster for dataset generation without any changes in downstream code.
Left one comment about checking whether we can run out of bounds.

x1 = min_c(width, <int> floor(x * scale_factor))
y1 = min_c(height, <int> floor(y * scale_factor))
x2 = min_c(width, <int> ceil((x + w) * scale_factor))
y2 = min_c(height, <int> ceil((y + h) * scale_factor))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we make a check here whether x1,y1 are smaller than 0, or x2,y2 > width, height? If we do go out of bounds there is no check right now.

Copy link
Contributor

@EricMarcus-ai EricMarcus-ai left a comment

Choose a reason for hiding this comment

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

LGTM

@jonasteuwen jonasteuwen merged commit e2105ba into main Jul 26, 2024
@jonasteuwen jonasteuwen deleted the feature/speedup-masking branch July 26, 2024 11:49
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