Maskrcnn-benchmark: RoI align in pytorch?

Created on 29 Nov 2018  ยท  2Comments  ยท  Source: facebookresearch/maskrcnn-benchmark

โ“ Questions and Help

I see that RoIAlign has been written in cuda here: https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/maskrcnn_benchmark/csrc/cuda/ROIAlign_cuda.cu

I am wondering if there was any particular reason it was not written in python?

question

Most helpful comment

roi pool and roi align are now implemented in torchvision.ops. Pretty convenient and easy to work with in Python.

All 2 comments

It's mostly for efficiency reasons.
If you want a Python-only version of ROIPool, you can find it here.
It probably doesn't work as is anymore (it was written for PyTorch 0.1), but it gives the gist of it.

roi pool and roi align are now implemented in torchvision.ops. Pretty convenient and easy to work with in Python.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zimenglan-sysu-512 picture zimenglan-sysu-512  ยท  3Comments

krumo picture krumo  ยท  3Comments

kaaier picture kaaier  ยท  3Comments

jbitton picture jbitton  ยท  4Comments

auroua picture auroua  ยท  3Comments