Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Ensure the shape of input patches is compatible with model constraints #682

Merged
merged 10 commits into from
Mar 10, 2022

Conversation

fepegar
Copy link
Contributor

@fepegar fepegar commented Mar 3, 2022

This change uses TorchIO's EnsureShapeMultiple to ensure that the inputs are a multiple of certain number which is specified in the model size constraints.

@fepegar fepegar marked this pull request as draft March 3, 2022 14:54
Update CHANGELOG

Fix transform being passed to itself

Add correct changes to inference file
@fepegar fepegar force-pushed the ensure-patches-shape-multiple branch from 85bcecd to fade6c3 Compare March 3, 2022 15:03
@fepegar fepegar marked this pull request as ready for review March 3, 2022 15:49
@fepegar fepegar marked this pull request as draft March 3, 2022 17:05
@fepegar fepegar marked this pull request as ready for review March 7, 2022 11:33
@fepegar fepegar requested review from ant0nsc and Shruthi42 and removed request for ant0nsc March 7, 2022 11:33
Shruthi42
Shruthi42 previously approved these changes Mar 8, 2022
@@ -59,15 +59,6 @@ def run_inference_on_unet(size: TupleInt3) -> None:
image_util.check_array_range(p)


def test_inference_on_too_small_image() -> None:
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Why delete a test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because images will never be too small after merging

Copy link
Contributor

Choose a reason for hiding this comment

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

The other PR does not have tests. Is it not possible to have a test to demonstrate that this is correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fepegar fepegar enabled auto-merge (squash) March 10, 2022 16:32
@fepegar fepegar merged commit d929ccb into microsoft:main Mar 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants