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

Enable UNETR for dynamic input shape #183

Open
constantinpape opened this issue Dec 10, 2023 · 0 comments
Open

Enable UNETR for dynamic input shape #183

constantinpape opened this issue Dec 10, 2023 · 0 comments

Comments

@constantinpape
Copy link
Owner

Currently our UNETR implementation has a fixed input shape, see https://github.com/constantinpape/torch-em/blob/main/torch_em/model/unetr.py#L64.

This is due to the fixed input shape of the underlying VIT implementation (either TIMM/MAE or SAM). However, this is only due to the fixed positional encoding size. Otherwise the transformer could process sequences of arbitrary length (and consequently images of dynamic shape as long as their divisible by the patch shape).

It would be nice to update this so that arbitrary input shapes are supported. But this is currently not a priority. cc @anwai98.

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