-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 this idea be used for 3D voxel convolutional NN? #9
Comments
Sure! It's the same concept, but with an added dimension |
@lucidrains |
Not really for this library, as I'd like to keep it image specific. But I'd be happy to share the code snippet you need if you show me the shape of your input tensor. It won't amount to more than 10 lines, before it goes into a standard transformer |
Thank you so much. My data shape is (31, 20, 20, 20). Voxel size is (20, 20, 20) with 31 channels. |
@xuzhang5788 ok, it was a 3 line change https://gist.github.com/lucidrains/213d2be85d67d71147d807737460baf4 |
@lucidrains Thank you very much. Does Linformer library need some changes for 3D? If I want to have 10 patches, is it okay to change into efficient_transformer = Linformer( |
@xuzhang5788 you just have to make sure the sequence length is correct yup, 10 patches would be 10 ** 3 + 1 (for cls token) |
for linformer, k is recommended to be around |
Thank you a lot |
It will be great If it can be applied to 3D voxel convolutional NN. Any concerns? Thanks
The text was updated successfully, but these errors were encountered: