question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'model.utils.cython_bbox' with PyTorch 1.0

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sndnyangcommented, Oct 30, 2019

hello i get this error

ModuleNotFoundError: No module named ‘utils.cython_bbox’

tensorflow any help?

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

cd lib
python setup.py build develop

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

1reaction
adityaarun1commented, Dec 17, 2018

Yes, now it works perfectly!

Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found