E2E-TAD icon indicating copy to clipboard operation
E2E-TAD copied to clipboard

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

Open alexandsunny opened this issue 2 years ago • 1 comments

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

alexandsunny avatar Dec 13 '22 04:12 alexandsunny

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.

xlliu7 avatar Dec 19 '22 07:12 xlliu7