-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix offset #8
Merged
Merged
Fix offset #8
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…nput image's chunk sizes
…maller than patch sizes
…ow overlapping patches extraction
…hes of the defined shape
…scales than image scale
fercer
added a commit
that referenced
this pull request
Aug 29, 2024
* Integration of CI/CD practices (#2) * Integration CI/CD pipeline to this project * Corrected github actions test workflow * Install the package before test it * Created empty __init__.py inside tests to record coverage * Changed name of sample_images_generator.py to utils.py for clarity * Updated test workflow to use a non-supported workaround for the multiple OpenMP runtime library issue * Updated test workflow to report coverage * Moved non-pytorch compatibility test to last position * Added test for datasets with zero expected samples * Changed PatchSampler to take as base the patche size instead of the input image's chunk sizes * Reverted change in the computation when masks elements are relative smaller than patch sizes * Fixed spatial chunk size computation when patch sizes are grater than the chunk size * Fixed missing patches from chunks smaller than the input image chunk size * Padding and stride added to PatchSampler and ImageBase classes to allow overlapping patches extraction * Added tests for stride and pad parameters of PatchSampler class * Fixed patch slices generation in PatchSampler to always retrieve patches of the defined shape * Standardized patch sampling method to handle smaller and bigger mask scales than image scale * Added example notebook to documentation * Fix offset (#8) * Changed PatchSampler to take as base the patche size instead of the input image's chunk sizes * Reverted change in the computation when masks elements are relative smaller than patch sizes * Fixed spatial chunk size computation when patch sizes are grater than the chunk size * Fixed missing patches from chunks smaller than the input image chunk size * Padding and stride added to PatchSampler and ImageBase classes to allow overlapping patches extraction * Added tests for stride and pad parameters of PatchSampler class * Fixed patch slices generation in PatchSampler to always retrieve patches of the defined shape * Standardized patch sampling method to handle smaller and bigger mask scales than image scale * Added example notebook to documentation * Fixed incorrect sampling of patches on masked regions * Updated documentation for version 0.0.2 * Updated tests/utils.py to use an example image from a public S3 bucket
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes the incorrect sampling on masked regions mentioned in #7 by considering the chunk location as offset for mask coordinates.
This also corrects a typo in the example notebook for clarity of the documentation.