Skip to content
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

Can we use spacing for test data? #31

Open
wefwefWEF2 opened this issue Dec 26, 2023 · 0 comments
Open

Can we use spacing for test data? #31

wefwefWEF2 opened this issue Dec 26, 2023 · 0 comments

Comments

@wefwefWEF2
Copy link

Thanks a lot for your work.
I noticed that spacing was not used for the test data set. I would like to ask if it can be used for the test dataset. Generally, spacing seems to improve some dice scores.

if self.split != "test":
            seg = (
                F.interpolate(
                    input=rearrange(seg_tensor, f"d c h w -> 1 c d h w"),
                    scale_factor=(img_spacing[0] / self.target_spacing[0], 1, 1),
                    mode="nearest",
                )
                .squeeze(0)
                .numpy()
            )
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

No branches or pull requests

1 participant