-
Notifications
You must be signed in to change notification settings - Fork 1.2k
6973 sincos pos embed #6986
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
6973 sincos pos embed #6986
Conversation
Signed-off-by: NoTody <[email protected]>
Signed-off-by: NoTody <[email protected]>
Signed-off-by: NoTody <[email protected]>
Signed-off-by: NoTody <[email protected]>
for more information, see https://pre-commit.ci
The checks don't pass because they don't include timm package. Do I need to write these functions I used from timm? I included timm in requirements-dev.txt. |
Thanks for the PR! looks like only minor utility functions are from timm, perhaps we can drop those for now instead of introducing a new dependency? Also the argument renaming makes sense, ideally we should keep them backward compatibility as well because it's been used in many places https://github.com/search?q=org%3AProject-MONAI+pos_embed&type=code. For example |
Ok, I can just rewrite these two functions I used from timm. For the second point, how should I make it backward compatible? Originally, you used pos_embed='conv' to represent patch_embed='conv'. Do you want to remain the same naming and introduce another name for pos_embed='none' or should I deprecate it? |
Sure, another way would be marking the original 'pos_embed' as deprecating in monai v1.4. MONAI/monai/utils/deprecate_utils.py Line 123 in 6dfe17a
|
… Deprecation for pos_embed. Signed-off-by: NoTody <[email protected]>
Signed-off-by: NoTody <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: NoTody <[email protected]>
Signed-off-by: NoTody <[email protected]>
for more information, see https://pre-commit.ci
… check. Signed-off-by: NoTody <[email protected]>
Signed-off-by: NoTody <[email protected]>
Hi, @wyli , I modified my pull request accordingly. I'm not sure why "premerge / packaging (pull_request)" don't pass on
I tested it locally and it was able to raise the error. Could you help me to check? |
Ok please sync up the tags to your fork... https://stackoverflow.com/questions/70678073/how-do-i-sync-tags-to-a-forked-github-repo I'll have a look soon. |
Signed-off-by: Wenqi Li <[email protected]>
/build |
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
/build |
Signed-off-by: Wenqi Li <[email protected]>
/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, integration tests work fine now, merging for more model tests
Fixes #6973
Description
Adding support for sincos positional embedding for monai.networks.blocks.patchembedding.PatchEmbedding class.
This pull request corresponds to this opened issue #6973
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.