Open chang0977 opened 6 years ago
Did you creatly compile the roi_align?
thanks I solved it with recompliing those. However, I found another error IOError: [Errno 2] No such file or directory: 'output/res101/voc_2007_trainval+voc_2012_trainval/default/res101_faster_rcnn_iter_110000.pth'
I linked 'default', under the 'output' folder, file to the pretrained model from Google drive and another file under 'data' folder to VOC2007devkit that I downloaded. I think I put the files in the right places but still meeting some errors I hope to know how to solve this.
{GPU_ID} ./tools/demo.py Traceback (most recent call last): File "./tools/demo.py", line 29, in
from nets.vgg16 import vgg16
File "/home/hyunbae/pytorch-faster-rcnn/tools/../lib/nets/vgg16.py", line 10, in
from nets.network import Network
File "/home/hyunbae/pytorch-faster-rcnn/tools/../lib/nets/network.py", line 28, in
from layer_utils.roi_align.crop_and_resize import CropAndResizeFunction
File "/home/hyunbae/pytorch-faster-rcnn/tools/../lib/layer_utils/roi_align/crop_and_resize.py", line 7, in
from ._ext import crop_and_resize as _backend
File "/home/hyunbae/pytorch-faster-rcnn/tools/../lib/layer_utils/roi_align/_ext/crop_and_resize/init.py", line 3, in
from ._crop_and_resize import lib as _lib, ffi as _ffi
ImportError: No module named _crop_and_resize