ModuleNotFoundError: No module named 'model.utils.cython_bbox' with PyTorch 1.0
See original GitHub issueHi,
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
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (3 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'utils.cython_bbox'
I'm using Windows 10 64 bit, Python 3.10.5, and as far as I can tell I've installed all dependencies including Visual Studio Code...
Read more >No module named torch - vision - PyTorch Forums
I am trying to run a python file that uses 'import torch' but I get the error ModuleNotFoundError: No module named 'torch'.
Read more >No module named 'model.utils.cython_bbox' - CSDN博客
我的代码依然报错。 想应该是版本的问题,参考其他版本的代码将lib/setup.py修改如下,再重新执行上面的命令,就没有报错了。
Read more >no module named 'typing_extensions' pytorch - You.com
Opcion 3 (con pip install archivo.whl ): · (base) C:\Users\MIPC\Desktop\MATI\Vtuber_HP\torch-for-cuda-8>pip install torch-1.0.0-cp35-cp35m-win_amd64.whl ERROR: ...
Read more >Simple index - piwheels
... aistlab-utils ansible-pygments import-ai arctic specclassify aiowsgi grew hhx-message bot-exts package-name-abcd frozenpy newrelation gnota aqualink-api ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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