Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing the module or attribute _C in the maskrcnn_benchmark package your calling in your notebook #190

Open
antoinecomp opened this issue Sep 21, 2023 · 0 comments

Comments

@antoinecomp
Copy link

I tried to run your notebook and it seems the maskrcnn_benchmark package is missing the module or attribute _C.

[/content/vqa-maskrcnn-benchmark/maskrcnn_benchmark/layers/nms.py](https://localhost:8080/#) in <module>
      1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
      2 # from ._utils import _C
----> 3 from maskrcnn_benchmark import _C
      4 
      5 nms = _C.nms

ImportError: cannot import name '_C' from 'maskrcnn_benchmark' (/content/vqa-maskrcnn-benchmark/maskrcnn_benchmark/__init__.py)

I went through the source code of this package to make sure that _C is well defined, you can check on the gitlab repo here) and got:

config	data	__init__.py  modeling	  solver      utils
csrc	engine	layers	     __pycache__  structures

So we don't have _C. Here is the file that calls it, nms.py:

# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# from ._utils import _C
from maskrcnn_benchmark import _C

nms = _C.nms
# nms.__doc__ = """
# This function performs Non-maximum suppresion"""

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

No branches or pull requests

1 participant