-
Notifications
You must be signed in to change notification settings - Fork 143
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
Usage of generalized convolution #215
Comments
Hi @96lives, To enable generative transposed sparseconv, you may simply pass in the def make_up_block(in_channels, out_channels, generative=False):
conv = partial(spnn.Conv3d, transposed=True, generative=generative)
return nn.Sequential(
conv(in_channels, out_channels, kernel_size=3, stride=2),
spnn.BatchNorm(out_channels),
spnn.ReLU(inplace=True),
) This is a sample code snippet in which you can get a generative transposed sparseconv block by passing in I will release another example codebase for indoor object detection that utilizes this operator soon. Best, |
@kentang-mit Thanks for the quick reply! Best, |
Hi @96lives, The source code of torchsparse 2.1.0 is still under internal quality check, so what you see is the 2.0.0 source code which does not have that argument. But for the library you installed from the wheels, the generative argument is there. Feel free to directly add it. Best, |
@kentang-mit
I expect Could you help me with the generative argument? |
Hello, I'm trying to use the generalized convolution of sparse tensors and want to ask you guys how to use it, cause the issues that I've looked seems to support generalized convolution as in MinkowskiEngine.
In MinkowskiEngine, the generalized convolution is supported by taking coordinates as inputs during the
forward()
on the convolution operation as in here, which allows us to compute the features on the coordinates that is not directly in the input coordinates.Looking at the torch-sparse issues in github, generlized convolution seems to be implemented, but I can't find the right documentation for it :(
Could you help me with this issue? I want to compute the features that are within the neighborhood of the input coordinates.
Thanks a milliions for the wonderful repo!
The text was updated successfully, but these errors were encountered: