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

AttributeError: module 'detectron2' has no attribute 'utils' #6

Closed
ak9250 opened this issue Jan 13, 2021 · 1 comment
Closed

AttributeError: module 'detectron2' has no attribute 'utils' #6

ak9250 opened this issue Jan 13, 2021 · 1 comment

Comments

@ak9250
Copy link

ak9250 commented Jan 13, 2021

when running the real example

Traceback (most recent call last):
File "scripts/preproc.py", line 58, in
from detectron2 import model_zoo
File "/usr/local/lib/python3.6/dist-packages/detectron2/model_zoo/init.py", line 7, in
from .model_zoo import get, get_config_file, get_checkpoint_url
File "/usr/local/lib/python3.6/dist-packages/detectron2/model_zoo/model_zoo.py", line 6, in
from detectron2.checkpoint import DetectionCheckpointer
File "/usr/local/lib/python3.6/dist-packages/detectron2/checkpoint/init.py", line 7, in
from .detection_checkpoint import DetectionCheckpointer
File "/usr/local/lib/python3.6/dist-packages/detectron2/checkpoint/detection_checkpoint.py", line 5, in
import detectron2.utils.comm as comm
AttributeError: module 'detectron2' has no attribute 'utils'

@sxyu
Copy link
Owner

sxyu commented Apr 3, 2021

Hi, thanks for reporting. I'm not sure why but the detectron2 subset that should be included was in .gitignore.

@sxyu sxyu closed this as completed Apr 3, 2021
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

2 participants