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.

No module named cython_bbox

See original GitHub issue

Hi, I’m trying your code but when I run:

CUDA_VISIBLE_DEVICES=$GPU_ID python trainval_net.py --dataset pascal_voc --net vgg16 --cuda --bs $BATCH_SIZE

for the training I have this error:

from model.utils.cython_bbox import bbox_overlaps ImportError: No module named cython_bbox

I’ve just installed cython doing: sudo pip install cython

Thanks in advance

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:37 (19 by maintainers)

github_iconTop GitHub Comments

5reactions
pranerdcommented, Dec 28, 2017

did you cd lib directory and run the command sh make.sh?

0reactions
jwyangcommented, Jan 11, 2018

The minimal batch size should be 2. If you want make it work, you can reduce the image size, and use resnet instead of vgg16.

On Wed, Jan 10, 2018 at 18:35 Capuz93 notifications@github.com wrote:

I changed the make file and I have a warning but I think it’s ok: nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

Then when I run the program setting BATCH_SIZE=2 and RPN_BATCHSIZE=2 I have “out of memory” error; when I run the program setting BATCH_SIZE=1 and RPN_BATCHSIZE=2 I have this error:

File “/home/Scrivania/TESI/FASTER_RCNN/2/faster-rcnn.pytorch-master/lib/model/rpn/proposal_target_layer_cascade.py”, line 168, in _sample_rois_pytorch rand_num = torch.from_numpy(rand_num).type_as(gt_boxes).long() RuntimeError: the given numpy array has zero-sized dimensions. Zero-sized dimensions are not supported in PyTorch

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/jwyang/faster-rcnn.pytorch/issues/9#issuecomment-356773953, or mute the thread https://github.com/notifications/unsubscribe-auth/ADtr55iF19TvZeRQ79TvRDxr6zCHI2W0ks5tJUk-gaJpZM4ROMy0 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'cython_bbox' · Issue #8 · ifzhang/FairMOT
ModuleNotFoundError: No module named 'cython_bbox'. Then I tried: pip install cython_bbox, However, also failed. Failed to build cython-bbox
Read more >
cython-bbox - PyPI
In order to use it in standalone code snippets or small projects, I make it a pypi module. The `cython_bbox.pyx` is totally borrowed...
Read more >
ModuleNotFoundError: No module named 'cython-bbox'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cython-bbox' How to remove the Module.
Read more >
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 >
ModuleNotFoundError: No module named 'Cython' in Python
The Python "ModuleNotFoundError: No module named 'Cython'" occurs when we forget to install the Cython module before importing it or install ...
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