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.

MMDet Tutorial not working on Colab

See original GitHub issue

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. I have read the FAQ documentation but cannot get the expected help.
  3. The bug has not been fixed in the latest version.

Describe the bug MMDet Tutorial no working on Colab.

Reproduction

  1. What command or script did you run?

Followed the link to open the tutorial on Colab. Then tried to run the cells starting from the top. However, the cell that is checking mmcv installation fails with error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-fad1b02c85b9> in <module>()
      8 
      9 # Check mmcv installation
---> 10 from mmcv.ops import get_compiling_cuda_version
     11 print(get_compiling_cuda_version())
     12 print(get_compiler_version())

3 frames
/usr/lib/python3.7/importlib/__init__.py in import_module(name, package)
    125                 break
    126             level += 1
--> 127     return _bootstrap._gcd_import(name[level:], package, level)
    128 
    129 

ImportError: /usr/local/lib/python3.7/dist-packages/mmcv/_ext.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _Z27points_in_boxes_cpu_forwardN2at6TensorES0_S0_
---------------------------------------------------------------------------
  1. Did you make any modifications on the code or config? Did you understand what you have modified?

The issue might be related with Colab using now CUDA 11.1. Tried to use:

!pip install -U torch==1.8.1+cu111 torchvision==0.9.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html

However, this didn’t solve the issue.

  1. What dataset did you use?

None

Environment

nvcc: NVIDIA ® Cuda compiler driver Copyright © 2005-2020 NVIDIA Corporation Built on Mon_Oct_12_20:09:46_PDT_2020 Cuda compilation tools, release 11.1, V11.1.105 Build cuda_11.1.TC455_06.29190527_0 gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright © 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
annie2008hicommented, Dec 3, 2021

I met the issue: ImportError: /home/anaconda3/envs/mmseg/lib/python3.6/site-packages/mmcv/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: Z27points_in_boxes_cpu_forwardN2at6TensorES0_S0

I change the version of mmcv-full to 1.3.13, by following command pip install mmcv-full==1.3.13 -f https://download.openmmlab.com/mmcv/dist/{CUDA_VERSION}/{PYTORCH_VERSION}/index.html It solves my problem.

0reactions
withbrightmooncommented, Dec 6, 2021

@Hihien Have you solve this problem? I also meet it when training faster rcnn / mask rcnn models on coco / cityscapes datasets.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MMAction2 Tutorial.ipynb - Colaboratory - Google Colab
This is the official colab tutorial for using MMAction2. In this tutorial, you will learn. Perform inference with a MMAction2 recognizer.
Read more >
Prerequisites — MMDetection 2.26.0 documentation
Step 1. Install MMDetection. Case a: If you develop and run mmdet directly, install it from source: git clone https://github ...
Read more >
MMDetection Tutorial - | notebook.community
Welcome to MMDetection! This is the official colab tutorial for using MMDetection. In this tutorial, you will learn. Perform inference with a MMDet...
Read more >
MMDetection Tutorial — An End2End State-of-the-art Object ...
All of the MMdetection models are based on PyTorch, but honestly, it uses much fewer lines of code (which I will be showing...
Read more >
mmdet - PyPI
mmdet 2.26.0 ... PyPI docs badge codecov license open issues issue resolution ... We provide colab tutorial and instance segmentation colab tutorial, ...
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