Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ImportError: cannot import name '_C' from 'maskrcnn_benchmark' #1346

Open
AlexanderWeismannn opened this issue Dec 14, 2022 · 2 comments
Open

Comments

@AlexanderWeismannn
Copy link

❓ Questions and Help

I've been trying to get the Simple Test Colab Notebook running from the github page again after succesfully doing it a year ago and am running to some issues with the maskrcnn_benchmark library. Does Anyone have any idea what has caused this error? Im sorta stumped and assume that I need to downgrade the python or maybe pip version being used on Collab.

image
The image above is the error being thrown.

@pronaykp
Copy link

Hey!
Please help me!

When I run this command:
"!python setup.py install --cuda_ext --cpp_ext"

I got this type of error
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: option --cuda_ext not recognized

Please help me!

@YoujunZhao
Copy link

YoujunZhao commented Jan 31, 2023

from ._utils import _C

use this to replace
from maskrcnn_benchmark import _C

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants