faster-rcnn.pytorch: ModuleNotFoundError: No module named 'model.utils.cython_bbox' with PyTorch 1.0
Hi,
Thanks for updating the repository to support PyTorch 1.0.
I successfully compiled the files using python setup.py build develop, but on running the training script, I get the following error:
$ CUDA_VISIBLE_DEVICS=0 python trainval_net.py --dataset pascal_voc --net vgg16 --cuda
Traceback (most recent call last):
File "trainval_net.py", line 27, in <module>
from roi_data_layer.roidb import combined_roidb
File "/ssd_scratch/cvit/aditya/faster-rcnn.pytorch/lib/roi_data_layer/roidb.py", line 9, in <module>
from datasets.factory import get_imdb
File "/ssd_scratch/cvit/aditya/faster-rcnn.pytorch/lib/datasets/factory.py", line 14, in <module>
from datasets.pascal_voc import pascal_voc
File "/ssd_scratch/cvit/aditya/faster-rcnn.pytorch/lib/datasets/pascal_voc.py", line 23, in <module>
from .imdb import imdb
File "/ssd_scratch/cvit/aditya/faster-rcnn.pytorch/lib/datasets/imdb.py", line 14, in <module>
from model.utils.cython_bbox import bbox_overlaps
ModuleNotFoundError: No module named 'model.utils.cython_bbox'
System details:
- Python 3.7
- CUDA 9.0
- CuDNN 7
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (3 by maintainers)
Install all the python dependencies using pip:
pip install -r requirements.txt Compile the cuda dependencies using following simple commands:
You need to compile it from https://github.com/jwyang/faster-rcnn.pytorch/issues/570
if you’re using python3, maybe you will encounter
error: invalid command 'develop'Follow this one, https://github.com/django-extensions/django-extensions/issues/92
Yes, now it works perfectly!
Thanks
@adityaarun1 sorry, fixed one more bug. try again?
Thanks for the update. I am now running into a separate problem.
I did run
python setup.py build developinside lib as instructed. I have also tried removing the build directory and re-run the command. Everytime the build finishes succesfully but on running the code, I get this error.