-
Notifications
You must be signed in to change notification settings - Fork 7.1k
I hope you can provide 3D align-pooling layer directly. Pray. #1678
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
Comments
There is currently no plans to add support for this operator, but that doesn't mean we wouldn't be willing to add it. Do you have references for it being used in some research papers already? |
@fmassa I don't like writing papers.Other authors have related papers, such as: |
The following code is the 3Dalign-pooling OP that I customized under pytorch, but only the forward part is shown here. Because of the limited code level, it takes a lot of time to train. When I deploy to the C++ side, I need to register to torchscript. I tried to deploy for several months, but failed to register all the time. global void Align3D_forward_kernel(
} void Align3D_forward_gpu(
} |
I hope too. I am doing medical image detection in a medical image company. Medical images are usually 3d images. We really need 3d operations like nms_3d, roi_align_3d and so on. |
@Hellcat1005 Adding a custom OP is simple, but it may not be efficient, resulting in time-consuming training, and deployment will also have an impact. I think you can try adding custom OP first. |
In general, are there any plans to provide support for 3D data or volumes? |
@lukasfolle we are working on making the transforms in torchvision support Tensors of multiple dimensions, but it might not directly translate to 3d volumes because they assume a different structure, while we currently assume that we have 2d images which are possibly batched |
I see that 2D align-pooling has been implemented, but there is no 3D one. I do target detection of 3D voxels. The input data format is (batch, channel, depth, height, w). I customized a 3D align-pooling Op. However, there is a big problem in the deployment. The custom OP needs to be registered in the torchscript. In this way, the model can be exported normally, and finally the model can be loaded on the C + + side.I tried for months, but it didn't work. I hope you can provide 3D align-pooling layer directly. Pray.
This is the function:
torchvision.ops.roi_align(input, boxes, output_size, spatial_scale=1.0, sampling_ratio=-1)
The text was updated successfully, but these errors were encountered: