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

Can torchvision.ops.RoIAlign be used instead of RoIAlign(CUDA extensions) #5

Open
alexandsunny opened this issue Dec 13, 2022 · 1 comment

Comments

@alexandsunny
Copy link

I had some problems converting my model to onnx
Can torchvision.ops.RoIAlign be used instead of RoIAlign(CUDA extensions)

@xlliu7
Copy link
Owner

xlliu7 commented Dec 19, 2022

I guess it is okay after some modification. Note that torchvision.ops.RoIAlign only works for 2D images (4D feature maps of shape NxCxHxW). So you should resize the input feature sequence of the RoIAlign module from NxCxT to NxCx1xT and also modify the RoI locations to fit the new shape.

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

2 participants