NeuralBabyTalk icon indicating copy to clipboard operation
NeuralBabyTalk copied to clipboard

where is _roi_align?

Open heartraeh opened this issue 6 years ago • 8 comments

Traceback (most recent call last): File "main.py", line 20, in import misc.AttModel as AttModel File "/home/wu/NeuralBabyTalk-master/misc/AttModel.py", line 10, in from misc.model import AttModel File "/home/wu/NeuralBabyTalk-master/misc/model.py", line 14, in from pooling.roi_align.modules.roi_align import RoIAlignAvg File "/home/wu/NeuralBabyTalk-master/pooling/roi_align/modules/roi_align.py", line 3, in from ..functions.roi_align import RoIAlignFunction File "/home/wu/NeuralBabyTalk-master/pooling/roi_align/functions/roi_align.py", line 3, in from .._ext import roi_align File "/home/wu/NeuralBabyTalk-master/pooling/roi_align/_ext/roi_align/init.py", line 3, in from ._roi_align import lib as _lib, ffi as _ffi ImportError: No module named _roi_align

heartraeh avatar Sep 03 '18 03:09 heartraeh

I have similar problem,have you solved it?

waallf avatar Sep 20 '18 11:09 waallf

Traceback (most recent call last): File "main.py", line 20, in import misc.AttModel as AttModel File "/home/z840/zhaoxinya/NeuralBabyTalk-master/misc/AttModel.py", line 10, in from misc.model import AttModel File "/home/z840/zhaoxinya/NeuralBabyTalk-master/misc/model.py", line 14, in from pooling.roi_align.modules.roi_align import RoIAlignAvg File "/home/z840/zhaoxinya/NeuralBabyTalk-master/pooling/roi_align/modules/roi_align.py", line 3, in from ..functions.roi_align import RoIAlignFunction File "/home/z840/zhaoxinya/NeuralBabyTalk-master/pooling/roi_align/functions/roi_align.py", line 3, in from .._ext import roi_align File "/home/z840/zhaoxinya/NeuralBabyTalk-master/pooling/roi_align/_ext/roi_align/init.py", line 2, in from torch.utils.ffi import _wrap_function File "/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/init.py", line 14, in raise ImportError("torch.utils.ffi requires the cffi package") ImportError: torch.utils.ffi requires the cffi package

waallf avatar Sep 20 '18 11:09 waallf

I think you need to reconfigure the environment

heartraeh avatar Sep 21 '18 03:09 heartraeh

@heartraeh I have the same issue. Have you resolved the issue?

shuguohe avatar Sep 24 '18 02:09 shuguohe

@heartraeh solved this issue by run make.sh in the roi_align folder.

shuguohe avatar Sep 24 '18 02:09 shuguohe

@shuguohe i am still unable to solve the same problem :( i also unable to run make.sh file in the roi_align folder, guide me plase...

madnankhalid avatar Oct 16 '18 06:10 madnankhalid

@waallf I have the same issue. Have you resolved the issue? I don't know how to solved it now.

xjdx123 avatar Dec 11 '18 03:12 xjdx123

I have the same issue. Have you resolved the issue? I don't know how to solved it now.

jiajunhua avatar Jul 30 '20 04:07 jiajunhua